D
Dan
How can you assign a variable to equal the results of
executing a SQL statement. I want to do something like:
strSQL = "SELECT MAX(BillNumber From [Bills] WHERE ..."
billNumber = CurrentDb.Execute strSQL, dbFailOnError
it doesn't work when you say "billNumber = " to the
executed DB but I need to set the billNumber equal to
that.
executing a SQL statement. I want to do something like:
strSQL = "SELECT MAX(BillNumber From [Bills] WHERE ..."
billNumber = CurrentDb.Execute strSQL, dbFailOnError
it doesn't work when you say "billNumber = " to the
executed DB but I need to set the billNumber equal to
that.