Hi Guys,
Im new to SQL and am trying to use the value from a list box to then use in a query.
I am using the following syntax:
DoCmd.RunSQL ("INSERT INTO tableName (fieldName) VALUES ('value') WHERE tableName.fieldname = ('" & listvalue "'); )
So basically in the list box they are selecting a value, this value is then looked up in the table and a value is added to one of this records fields.
When I run this I get an error relating to the semi-colon, but Ive tried various other ways all of which havent been sucessful.
Can anyone please tell me where im going wrong?
Regards