Following along in Geneology Seminar lesson 02 where we are adding a double click event on MotherID field. The first statement we add (docmd) works perfectly when I double click on a name in the MotherID field. However, when I add this: "If MotherCombo = 0 Then Exit Sub" and double click on a blank MotherID field, I get this error message: "Syntax error (missing operator) in query." I am using Access from Microsoft 365. I can't find anything wrong. Please help!
Kevin Robertson
Also check for a Null value.
If IsNull(MotherCombo) Or MotherCombo = 0 Then Exit Sub
Roxanne Drachenberg
Okay, that fixed it!
Thank you very much and Happy New Year!
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Genealogy Seminar.
The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.