Hi all,
I have a form based on a table which has the Product No (autonumber) as the PK.
i ahve an update query which will update fields in my table as follows:
Update tblproducts set primary_material_no = '" & Combo59.Value & "' , secondary_material_no = '" & Cbo_subcategory.Value & "', Updated = 1 where [Product No] = '" & [Product No].Value & "'"
when product no is an autonumber, the query wont work but when i change product no to a text value it does work.
Is there anyway i can use my update query with the Product No field as an autonumber?
Cheers,
Maggie
"Work is the curse of the drinking classes
I have a form based on a table which has the Product No (autonumber) as the PK.
i ahve an update query which will update fields in my table as follows:
Update tblproducts set primary_material_no = '" & Combo59.Value & "' , secondary_material_no = '" & Cbo_subcategory.Value & "', Updated = 1 where [Product No] = '" & [Product No].Value & "'"
when product no is an autonumber, the query wont work but when i change product no to a text value it does work.
Is there anyway i can use my update query with the Product No field as an autonumber?
Cheers,
Maggie
"Work is the curse of the drinking classes