rst.recordcount & verify docmd.sendobject

G

Guest

Hi

I read the help files a few times, and i don't understand why my recordcount
in ado recordsets return -1. basically i run in to the problem of knowing
whether the recordset has opened. what am i doing wrong?

also, i would like to verify if the docmd.sendobject excuted. basically i
send some stuff to outlook, and i set Edit Message= true. i would like that
the user can click away to something else, and more importantly, cancel the
email with out causing some error. in other words i would like to do this:
DidISend = docmd.sendObject( etc...
however, this doesn't work. what can i do?

thanks,

sam
 
V

Van T. Dinh

For the first part, RecordCount of ADO Recordset may returns -1 to simply
indicate that the Recordset is not empty and not the actual number of
Records /rows in the Recordset.

Check the Help topic for ADO RecordCount. IIRC, it has explanation on the
type of Recordset and the corresponding RecordCount return value.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top