S
Steven Scaife
I am using currentDB() to run some SQL code in my form.
I need to get a value entered via SQL code that is to be run before this
line. When i have this value i want to do an insert statement. The insert
isnt a problem. Getting the value is.
the select statement is "SELECT TOP 1 Payment_ID FROM Payment ORDER BY
Payment_ID DESC;"
i thought i could do:
strVariable = db.Execute "SELECT TOP 1 Payment_ID FROM Payment ORDER BY
Payment_ID DESC;"
But it doesnt like this, is there another way of doing this
Thanks in advance
I need to get a value entered via SQL code that is to be run before this
line. When i have this value i want to do an insert statement. The insert
isnt a problem. Getting the value is.
the select statement is "SELECT TOP 1 Payment_ID FROM Payment ORDER BY
Payment_ID DESC;"
i thought i could do:
strVariable = db.Execute "SELECT TOP 1 Payment_ID FROM Payment ORDER BY
Payment_ID DESC;"
But it doesnt like this, is there another way of doing this
Thanks in advance