Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sql result

Status
Not open for further replies.

elly00

Technical User
Jun 30, 2011
69
0
0
IT
Hi,,
how can I test the result of a query?

For example I've SELECT COUNT(*)FROM TABLE..

I would like to store the result in a variable in order to test it
 
If you have a single value returned from a recordset, it can be retrieved with something like:

[tt]myvariable = rst.Fields(0)[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top