Message box

C

chris

I want to create a message box to appear whenever a value is updated in a control of a form that equals a value of a control in an existing query. HELP!!!!
 
T

TC

Use the BeforeUpdate event of the control, to trap the value entered by the
user.

Then use the DLookup() function to check for that value in an existing
record of a table or query.

If it is found (or not found - whatever), use the MsgBox() function to
display a message, then set the Cancel arameter of the BeforeUpdate event to
True to keep the user in that field, until he changes the value to something
accetable.

All these things are described in online help.

HTH,
TC


chris said:
I want to create a message box to appear whenever a value is updated in a
control of a form that equals a value of a control in an existing query.
HELP!!!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top