Microsoft
Software
Hardware
Network
Question : access 2003 delete query to not work check sql syntax?
Hi have an access 2003 db with a delete query in vba. Not working. Sure I am missing something please take a look.
I am wanting to delete all records from the LabelTemp table that have a value of -1 in the Cleartbl column.
strSql = delete FROM("LabelTemp")WHERE Cleartbl = -1
Answer : access 2003 delete query to not work check sql syntax?
Well, I followed the same shorthand you seemed to use in your posting, but I may have assimed too much. You would of course have to quote the string like follows:
strSql = "DELETE * FROM [LabelTemp] WHERE Cleartbl = -1"
~bp
Random Solutions
Subform Dlookup with multiple criteria
ADO recordset open SQL statement. Error when table name contains an underscore. MyTable_New
Cant see header or footer in form view??
WSS 3.0 Documents in Sharepoint
Dynamics CRM - Share activity based on team
Query based on multiple criteria
Visual Studio 2008 on VMWare Fusion 3 Tweaks (XP)
Converting Dates with SQL
Having Trouble Keeping SBS C: Drive Defragmented
Clone Windows 7 to new drive