mrussell71
IS-IT--Management
I am using stored procedures to update an Access database. The majority of these procedures are DELETE queries and these run flawlessly. However, I am unable to get the right syntax for an UPDATE query.
sSQL = "CREATE PROCEDURE procEPCUpdateNGKPOUND " _
& "AS SELECT tblEPC SET " _
& "tblEPC.PartNo = Replace(tblEPC.PartNo, Chr(35), '') " _
& "WHERE((tblEPC.MfrCode)= 'NGK') "
CreateStoredProc(sSQL)
It doesn't like Replace. Any suggestions as to the right syntax would be greatly appreciated.
sSQL = "CREATE PROCEDURE procEPCUpdateNGKPOUND " _
& "AS SELECT tblEPC SET " _
& "tblEPC.PartNo = Replace(tblEPC.PartNo, Chr(35), '') " _
& "WHERE((tblEPC.MfrCode)= 'NGK') "
CreateStoredProc(sSQL)
It doesn't like Replace. Any suggestions as to the right syntax would be greatly appreciated.