I found a workaround for this problem, should anyone else come across it. From reading other posts on the internet, this seems to be an issue when viewing the form in Datasheet view. Instead of using Cancel = true, use DoCmd.cancelevent. This works for me.
Thanks for your help, Skip.
aslrunner
Interesting observation SkipVought; however, I find that is how Microsoft uses it per their help files:
Private Sub ProductName_BeforeUpdate(Cancel As Integer)
If(Not IsNull(DLookup("[ProductName]", _
"Products", "[ProductName] ='" _
& Me!ProductName & "'"))) Then...
I have a textbox on a form with the following code for preventing data entry that doesn't meet certain criteria. However, whenever it exits this procedure I get the Error 3270 "Property not found" error. It only shows up if the Cancel = True command is executed. If it's not there the if...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.