If you are returning the count in a record set, make sure you provide a name to reference the count column.
Select count(*) As RecCnt From Table Terry L. Broadbent FAQ183-874 contains tips for posting questions in these forums.
NOTE: Reference to the FAQ is not directed at any individual.
All you've done is create a string and display it in a message box. You need to execute the query against the database. The manner in which you do that will depend on how you are connecting. Are you woring in VB with ADO or ODBC? What is the database? Terry L. Broadbent FAQ183-874 contains tips for posting questions in these forums.
NOTE: Reference to the FAQ is not directed at any individual.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.