I have had a script running perfectly in Access 2000, but now the client wants to start running 2003. When it gets to
DoCmd.SetWarnings False
mySQL = "DELETE * FROM table_name"
DoCmd.RunSQL mySQL
stDocName = "query_name"
DoCmd.OpenQuery stDocName
DoCmd.SetWarnings True
it works as 2000 until it attempts to append records in the DoCmd.OpenQuery stDocName bit when it informs me each time that it will append one record. This happens for every append, which is a nuisance when it is around 10 records, but over 30 or so it is unworkable. All the other warnings are ignored, except just this one. What am I doing wrong, I have tried all the switches on the DoCmd.OpenQuery but they don't make any difference to the error reporting.
DoCmd.SetWarnings False
mySQL = "DELETE * FROM table_name"
DoCmd.RunSQL mySQL
stDocName = "query_name"
DoCmd.OpenQuery stDocName
DoCmd.SetWarnings True
it works as 2000 until it attempts to append records in the DoCmd.OpenQuery stDocName bit when it informs me each time that it will append one record. This happens for every append, which is a nuisance when it is around 10 records, but over 30 or so it is unworkable. All the other warnings are ignored, except just this one. What am I doing wrong, I have tried all the switches on the DoCmd.OpenQuery but they don't make any difference to the error reporting.