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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RecordExit method of form object won't fire!

Status
Not open for further replies.

WantToKnowMore

Programmer
Apr 6, 2004
31
US
I want to stop the user from exiting a record if a certain field is empty. I have 2 combo boxes that depend upon each other and if the user hits escape, the one box is ok but the other box will not requery. (The underlying record is fine and contains the value, it just won't display). So I thought I'd try to stop the user another way.

I found the form method 'RecordExit' in the VBA help which is supposed to pause the user's exit and allow you to check for errors.

I know that the method doesn't appear in the forms property sheet (the help indicated that there are some VBA available methods that aren't available on the Access side - If you don't click on the form's property sheet a method that you added in with code, the form isn't aware of the code for the method.)

My book doesn't say how to make it fire, and I assumed that it would on its own, but maybe not.

Any ideas?

Thanks much in advance!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top