Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Prompt user warning of null entries

Status
Not open for further replies.

supanoods

Programmer
Jun 6, 2002
68
GB
I'm not the best VB coder in the world - always no enough to get me by, but have now hit a stumbling block...

I have a standard data entry form and at the bottom a SUBMIT button (basically creates a new record and clears the form). At the moment there is no confirmation of the new record being submitted, therefore...

Can anyone give me some pointers on creating a suitable confirmation message, and if possible - show me how I could go about listing any blank or "null" fields on a message box prompt. Which if includes blank fields - tells the user what to complete before creating record.

Thanks in advance!

Supanoods B-)

"If it aint broke - dont fix it!
 
The usual way is to enforce the rules in the BeforeUpdate event procedure of the form.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Thanks 4 the quick response!

When you say "enforce the rules", I am a little confused. Do you mean that I should declare which fields that are mandatory? Because I do have certain fields (like Date) that MUST hold a value - therefore I have made the field mandatory in the table that holds the records that this form produces. Doing so means that if I leave a mandatory field blank, an access error message appears - but to the average user, this prompt will confuse.

"If it aint broke - dont fix it!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top