SQL String Value

IanT

Registered User.
Local time
Today, 11:12
Joined
Nov 30, 2001
Messages
191
I have a sql statement to update a table, the sql string is called strSQl as below:
strSQL = "INSERT INTO tblQuote etc etc"

Is it possibel to identify if there is a value returned, as if there isn't I would like to record the fact in the table!
 
I'm not sure i understand your question, an insert query doesn't "return a value", but if it relates to number of records inserted, you could try:

dim db as dao.database
set db=currentdb
db.execute strsql
msgbox db.recordsaffected
 

Users who are viewing this thread

Back
Top Bottom