Satya: Take a look at http://bytes.com/topic/access/answers/203238-best-way-test-empty-recordset
hth, Parke On 8/9/12, satya <[email protected]> wrote: > >> I am trying the following code, but unable to get recordcount in order to >> check whether empty or not.. rather it always returning -1 regardless >> records exist or not.. PLS HELP >> >> set cmdObj= createobject("adodb.command") >> Set rsObj =createobject("adodb.recordset") >> >> cmdObj.ActiveConnection = strCon >> >> cmdObj.CommandText = SqlQuery >> >> Set rsObj = cmdObj.Execute' Run the SQL query >> MSGBOX rsObj.RecordCount > > Thanks in Advance.. > > Thanks, > Satya > > -- > You received this message because you are subscribed to the Google > "QTP - HP Quick Test Professional - Automated Software Testing" > group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/MercuryQTP?hl=en > -- You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en
