Jat421 Posted June 13, 2012 Share Posted June 13, 2012 Hi, How can I pass the count from the _Query() to MsgBox() $i = _Query($sql, "select count(link_no) from temp_tbl") With $i $a = .GetRows EndWith MsgBox(0,'Count',$a) Link to comment Share on other sites More sharing options...
jdelaney Posted June 13, 2012 Share Posted June 13, 2012 (edited) count will only return one row, so to .getrows isn't the way. Try .value or maybe it's .fields(0).Value i forget, but one should work Edited June 13, 2012 by jdelaney IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. Link to comment Share on other sites More sharing options...
Jat421 Posted June 13, 2012 Author Share Posted June 13, 2012 .fields(0).Value worked!!!. Thank you! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now