Select Count question
From: David Smith (DJSmith_at_mail.ci.dallas.tx.us)
Date: 02/08/05
- Next message: Greg Teets: "Re: Updating An ADO 2.6 Recordset With VB and Access"
- Previous message: dk: "error converting the varchar value 'True' to a column of data smal"
- Next in thread: Veign: "Re: Select Count question"
- Reply: Veign: "Re: Select Count question"
- Reply: Paul Clement: "Re: Select Count question"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 8 Feb 2005 13:30:33 -0600
Its been 3 years since I coded and I'm trying to remember little things.
This is one of them.
I want to run a select count(*) statement and get the number of records
meeting the criteria. What is the syntax for assigning the returned value
to a variable.
I tried the following
adoConnect.Execute CallHold, counted
where callhold is the sql statement and counted is the variable I want the
result to be assigned to.
I get a return of -1 which can't be correct. Can someone please answer
this simple question for me? Thanks
- Next message: Greg Teets: "Re: Updating An ADO 2.6 Recordset With VB and Access"
- Previous message: dk: "error converting the varchar value 'True' to a column of data smal"
- Next in thread: Veign: "Re: Select Count question"
- Reply: Veign: "Re: Select Count question"
- Reply: Paul Clement: "Re: Select Count question"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|