>DECLARE SHORT SQLRowCount IN ODBC32 ; > INTEGER StatementHandle, ; > INTEGER @RowCountPtr > >lhTest = SQLSTRINGCONNECT("dns=DemoTDat;") > >IF lhTest > -1 > lcSQL = "SELECT * FROM dbc.tables ORDER BY CreateTimeStamp" > lnResult = SQLEXEC(m.lhTest, m.lcSQL) && returns several hundred rows... obviously a good connection > > lnSQLResult = SQLRowCount(m.lhTest, @lnTally) && errors out > > SQLDisconnect(m.lhTest) >ENDIFWhere do you initialize lnTally before passing it by reference?