G
Guest
Hi,
I am trying to delete some SQL db data using the following VBA code:
<connection string....>
strSQL = "DELETE * tblEmployeeVProject WHERE fldEmployeeVProject_ID=" &
Me.fldEmployeeVProject_ID_old
cmd.CommandText = strSQL
cmd.CommandType = adCmdText
Set rs = cmd.Execute
--
Notes:
fldEmployeeVProject_ID_old is a GUID
- all I get for strSQL is DELETE * tblEmployeeVProject WHERE
fldEmployeeVProject_ID=????????
How do I get the right reference GUID so that the query works? Do I need to
use a stored procedure and pass parameters instead?
Thanks for your help.
Regards,
Alan
I am trying to delete some SQL db data using the following VBA code:
<connection string....>
strSQL = "DELETE * tblEmployeeVProject WHERE fldEmployeeVProject_ID=" &
Me.fldEmployeeVProject_ID_old
cmd.CommandText = strSQL
cmd.CommandType = adCmdText
Set rs = cmd.Execute
--
Notes:
fldEmployeeVProject_ID_old is a GUID
- all I get for strSQL is DELETE * tblEmployeeVProject WHERE
fldEmployeeVProject_ID=????????
How do I get the right reference GUID so that the query works? Do I need to
use a stored procedure and pass parameters instead?
Thanks for your help.
Regards,
Alan