Advertisement

07.16.2008 at 10:58AM PDT, ID: 23570648
[x]
Attachment Details

Can't Bind recordset to report in Access

Asked by spencerturbine in Microsoft ADP, Access Reports, Access Forms

Tags: Microsoft, Access, 20003

I am trying to create a recordset and bind it to a report but I get an error

the first error I understood to be that in an mdb I can't bind an RS to a report so I created an adp and in and entered the following VBA code.

The error I get now is runtime error 91 Object variable or With block variable not set.

How can I accomplish this task?



Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
Public Sub Report_Open(Cancel As Integer)
Dim rs As Recordset
Set rs = New Recordset
 
rs.Fields.Append "myField", adChar, 255
rs.Open
'Add a row to the in-memory Recordset
rs.AddNew
rs("myField") = "Hey Joe"
rs.Update
Me.Recordset = rs
[+][-]07.16.2008 at 11:50AM PDT, ID: 22018914

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.16.2008 at 10:59PM PDT, ID: 22022632

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.17.2008 at 08:21AM PDT, ID: 22026449

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.17.2008 at 08:25AM PDT, ID: 22026496

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.17.2008 at 04:11PM PDT, ID: 22031230

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.20.2008 at 06:13AM PDT, ID: 22045702

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft ADP, Access Reports, Access Forms
Tags: Microsoft, Access, 20003
Sign Up Now!
Solution Provided By: LSMConsulting
Participating Experts: 3
Solution Grade: A
 
 
[+][-]07.20.2008 at 11:10AM PDT, ID: 22046448

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.20.2008 at 11:17AM PDT, ID: 22046465

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.28.2008 at 06:50PM PDT, ID: 22341535

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]09.01.2008 at 10:36AM PDT, ID: 22361724

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628