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

Errors after BeforeUpdate event in form (Access 2007)

Status
Not open for further replies.

WaltW

MIS
Jun 14, 2000
130
US
I'm working on a form in an Access 2007 database. I'm using the BeforeUpdate event to validate the data entered into several fields in the form. In every case, no matter how simple the data check, an error message is displayed - generally either "Property not found" or "No current record" - whenever the data is invalid and I set the "Cancel" variable to True. It doesn't seem to matter what field I try to validate, or the form it's on, I always get an error. I've used the BeforeUpdate event many, many times, and never seen this before. All of the attempts have been in the same database (perhaps there's something corrupted in the database?). Does anybody have any suggestions how to fix this?

Thanks!
-Walt
 
After a little more testing, it appears to give the error messages only when the form is in Datasheet format. The exact same VBA code works fine if the form is in normal "Single Form" mode. Any suggestions would be very much appreciated!

Thanks,
Walt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top