G
Guest
I'm getting a Data Type mismatch error when I run the following and the
company name has an apostrophe in it (i.e. Toole's Repair Shop)...
strCompany=replace(me!cboCompany,"'","''")
sqlAddRec="INSERT INTO PO ([PO_Number],[Company]) VALUES ('" &
me!txtPONumber & "','" & strCompany & "')"
currentdb.execute sqlAddRec
Can anyone see the problem that I'm obviously not seeing?
company name has an apostrophe in it (i.e. Toole's Repair Shop)...
strCompany=replace(me!cboCompany,"'","''")
sqlAddRec="INSERT INTO PO ([PO_Number],[Company]) VALUES ('" &
me!txtPONumber & "','" & strCompany & "')"
currentdb.execute sqlAddRec
Can anyone see the problem that I'm obviously not seeing?