S
Sash
I have the following statement and the problem is that me!DESCR may contain a
single quote or comma which in turn throws off my statement. Can someone
help???
strsql = "insert into June_Location_ItemMaster (ITEM_NO, DESCR, MFR, MFRCat,
Inv_INV_QTY, PRICE, Inv_LOCATION, Inv_ID, DateCounted)VALUES('" & Me!ITEM_NO
& "', '" & Me!DESCR & "', '" & Me!MFR & "', '" & Me!MFRCat & "'," &
Me!INV_QTY & ", " & intPrice & ", '" & Me!LOCATION & "', " & Me!ID & ", '" &
Me!DateCounted & "');"
single quote or comma which in turn throws off my statement. Can someone
help???
strsql = "insert into June_Location_ItemMaster (ITEM_NO, DESCR, MFR, MFRCat,
Inv_INV_QTY, PRICE, Inv_LOCATION, Inv_ID, DateCounted)VALUES('" & Me!ITEM_NO
& "', '" & Me!DESCR & "', '" & Me!MFR & "', '" & Me!MFRCat & "'," &
Me!INV_QTY & ", " & intPrice & ", '" & Me!LOCATION & "', " & Me!ID & ", '" &
Me!DateCounted & "');"