Advertisement

04.11.2008 at 09:34AM PDT, ID: 23315683
[x]
Attachment Details

change reports record source

Asked by ClaudeWalker in Microsoft Access Database, Access Reports, Access Coding/Macros

Tags: Microsoft, Offce, 2003, access 2003

I have a report and I want to change the recordsource from qryWPPI_Funding to qryWPPI_Funding_Null.
I can't seem to do it.  

Can I only do it in design mode?  If so, could I open the report in design modem change the record source and then change the view to preview?

Thanks, JOe K,Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
Private Sub Report_Open(Cancel As Integer)
    Dim sSql As String
    
    If IsNull([Forms]![jobsstatsinfoform]![MonthIndicator]) Then
        Me.RecordSource = "qryWPPI_Funding_Null"
    Else
        Me.RecordSource = "qryWPPI_Funding"
    End If
    
End Sub
[+][-]04.11.2008 at 09:54AM PDT, ID: 21335969

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.

 
[+][-]04.11.2008 at 10:02AM PDT, ID: 21336056

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.

 
[+][-]04.11.2008 at 10:08AM PDT, ID: 21336105

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 Access Database, Access Reports, Access Coding/Macros
Tags: Microsoft, Offce, 2003, access 2003
Sign Up Now!
Solution Provided By: capricorn1
Participating Experts: 2
Solution Grade: A
 
 
[+][-]04.11.2008 at 10:46AM PDT, ID: 21336465

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

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

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