Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CREATING A RECORDSET AND MAKING IT FORM'S RECORDSET

Status
Not open for further replies.

tzigone

MIS
Aug 11, 2003
42
TR
Hi!
I want to create a table in my vba code. This table does not exist in database, it will only appear in an access form. That is I want this recorset to be the recordset of my form.

dim myrs as new adodb.recordset

myrs.fields.append "score",adinteger
with myrs
.addnew
.fields("score")=1
end with

set me.recordset=myrs

This produces run-time error 7965( The object you entered is not valid recordset property".

How can I solve this problem?
Thank you


 
Hi!

Forms recordset (unless you're using adp/sql backend) are DAO, so the recordset needs to be so to.

If not adp, then be sure there's a reference to the dao library, and use dao code.

HTH Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top