G
Guest
Hi
Can anyone please tell me the correct syntax for a where clause. I am using
execute to delete records from a table. It worked ok when I wanted all
records deleting but now I want to add a where clause and I get error 424
Object Required.
strCountry = Me![Country]
strSQL = "DELETE * FROM DealerSelection WHERE DealerSelection.Country
Code = " & strCountry
db.Execute strSQL, dbFailOnError
Thanks in advance for any help.
Sue
Can anyone please tell me the correct syntax for a where clause. I am using
execute to delete records from a table. It worked ok when I wanted all
records deleting but now I want to add a where clause and I get error 424
Object Required.
strCountry = Me![Country]
strSQL = "DELETE * FROM DealerSelection WHERE DealerSelection.Country
Code = " & strCountry
db.Execute strSQL, dbFailOnError
Thanks in advance for any help.
Sue