In other words, the sql not be constructed correctly.
In this case possibly because no value has been specified in the form.
Try changing line 4 to
SelectedCustID = NZ([Forms]
Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
>> http:#a23767062
mx
You have a couple of problems...
omganq was correct that you need the DoCmd.. and as mildurait is correct that you should be prepared for nul values
but you have another problem is that you are using a variable in the where clause of the SQL
"WHERE (((tblPrintFlag.CustID)=Se
Needs to change to
"WHERE (((tblPrintFlag.CustID)=" & SelectedCustID & "))"
Business Accounts
Answer for Membership
by: omgangPosted on 2009-02-28 at 22:07:51ID: 23767062
RunSQL is a method of the DoCmd Object. The error message is telling you that you have not specified an object for the method.
lectedCust ID))"
DoCmd.RunSQL "UPDATE tblPrintFlag SET tblPrintFlag.PrintFlag = True " & _
"WHERE (((tblPrintFlag.CustID)=Se
OM Gang