How do I format this line of code correctly to allow me to have the parenthesis inside the statement string?
db.Execute("SQL DB", "INSERT INTO ABPCahirMIS.dbo.TESTDB (TEST) VALUES(1) ")
How do I format this line of code correctly to allow me to have the parenthesis inside the statement string?
db.Execute("SQL DB", "INSERT INTO ABPCahirMIS.dbo.TESTDB (TEST) VALUES(1) ")
In VBA, if you call a sub, you don't add parentheses to the call, eg:
db.Execute "SQL DB", "INSERT INTO ABPCahirMIS.dbo.TESTDB (TEST) VALUES(1)"
Something like this:
Dim dbs As DAO.Database, sql as String
Set dbs = "SQL DB"
sql = INSERT INTO ABPCahirMIS.dbo.TESTDB (TEST) VALUES(1)
dbs.Execute sql, dbFailOnError