I use the CurrentDb.Execute command quite often to launch a query within my DBA code but sometimes the
syntax doesn't exactly match the SQL of my query like in the following:
This works:
This is totally wrong:
How do I fix the totally wrong?
Thanks
syntax doesn't exactly match the SQL of my query like in the following:
This works:
Code:
strSql = "delete * from SameOrd_tbl where License_PartNo is null"
CurrentDb.Execute strSql
This is totally wrong:
Code:
strSql = "Delete * FROM SameOrd_tbl WHERE (((SameOrd_tbl.License_PartNo)=" "))"
CurrentDb.Execute strSql
How do I fix the totally wrong?
Thanks