On Thu, 2012-04-05 at 21:17 -0400, ronald at ...2810... wrote: Your problem is with your SQL Query I Think ? $hConn.Exec("use AddressBook;") iData = $hConn.Exec("select count(*) AS RecCount from Addresses") PRINT iData!RecCount Does this work ? Cheers, Ian Roper - Perth Western Australia