here's my situation:
I'm looking to snag a field out of a record retrieved by a command executed by the doCmd.RunSQL method or something and then store it in a variable.
this query will only pull one record and i want a single piece of data out of it. any suggestions?
the table structure looks like this:
[ reportID | reportDescription ]
the SQL command i will run:
SELECT reportID from tblDecription WHERE reportDescription = "blahblah"
i want to store reportID (an integer) into an integer variable to use in a procedure i will be writing.
i've ascertained that i'll need to use a recordset - i'm just kinda lost as to where i should start researching...
thanks for any help.
I'm looking to snag a field out of a record retrieved by a command executed by the doCmd.RunSQL method or something and then store it in a variable.
this query will only pull one record and i want a single piece of data out of it. any suggestions?
the table structure looks like this:
[ reportID | reportDescription ]
the SQL command i will run:
SELECT reportID from tblDecription WHERE reportDescription = "blahblah"
i want to store reportID (an integer) into an integer variable to use in a procedure i will be writing.
i've ascertained that i'll need to use a recordset - i'm just kinda lost as to where i should start researching...
thanks for any help.