S suvagich New member Local time Today, 04:04 Joined Apr 3, 2012 Messages 7 Jun 27, 2012 #1 hi, i want to select total count of records of table into variable. so how can i do that using select query? select count(*) into variable from table ; is this correct way???? thanx,
hi, i want to select total count of records of table into variable. so how can i do that using select query? select count(*) into variable from table ; is this correct way???? thanx,
pbaldy Wino Moderator Staff member Local time Today, 04:04 Joined Aug 30, 2003 Messages 36,272 Jun 27, 2012 #2 A VBA variable? No, you'd either use a DCount() or open a recordset on similar SQL. VariableName = DCount(...) With the appropriate arguments.
A VBA variable? No, you'd either use a DCount() or open a recordset on similar SQL. VariableName = DCount(...) With the appropriate arguments.
S suvagich New member Local time Today, 04:04 Joined Apr 3, 2012 Messages 7 Jun 27, 2012 #3 Thnx a lot Paul... your solution worked for me.. thnx...
pbaldy Wino Moderator Staff member Local time Today, 04:04 Joined Aug 30, 2003 Messages 36,272 Jun 27, 2012 #4 Happy to help.