I am getting the error "Too Few Parameters. Expected 1." when running the following Execute:
' Add Offer Numbers to tblWIP
Set dbOfferNumberAdd = CurrentDb
dbOfferNumberAdd.Execute ("UPDATE qryWIP SET [OfferNumber] = '" & strOfferNumberAdd & "' WHERE [OfferDescription] = '" & strOffer & "'"), dbFailOnError
dbOfferNumberAdd.Close
Set dbOfferNumberAdd = Nothing
I would appreciate any advise if my syntax is wrong. I have a value in both of my strings and the query I am updating has a blank value in the OfferNumber field where the OfferDescription matches the strOfferDescription value.
' Add Offer Numbers to tblWIP
Set dbOfferNumberAdd = CurrentDb
dbOfferNumberAdd.Execute ("UPDATE qryWIP SET [OfferNumber] = '" & strOfferNumberAdd & "' WHERE [OfferDescription] = '" & strOffer & "'"), dbFailOnError
dbOfferNumberAdd.Close
Set dbOfferNumberAdd = Nothing
I would appreciate any advise if my syntax is wrong. I have a value in both of my strings and the query I am updating has a blank value in the OfferNumber field where the OfferDescription matches the strOfferDescription value.