N
NEWER USER
I have some SQL lines of code that fail in vb but work in SQL View Query.
Failing at the quotations.
DoCmd.RunSQL "UPDATE [Update Template] SET [Update Template].F11 =
Mid([F10],4,InStr([F10]," ")-1) " & _ 'it fails @ ")-1)"
WHERE (((InStr([F10],"/"))=0))" 'Possibly here too "/"
DoCmd.RunSQL "UPDATE tblSales SET tblSales.[Part Number] =
Replace(Replace([Part Number],"-",""),".","")" 'it fails "-"."")
How do I correct? Any help appreciated.
Failing at the quotations.
DoCmd.RunSQL "UPDATE [Update Template] SET [Update Template].F11 =
Mid([F10],4,InStr([F10]," ")-1) " & _ 'it fails @ ")-1)"
WHERE (((InStr([F10],"/"))=0))" 'Possibly here too "/"
DoCmd.RunSQL "UPDATE tblSales SET tblSales.[Part Number] =
Replace(Replace([Part Number],"-",""),".","")" 'it fails "-"."")
How do I correct? Any help appreciated.