Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How Do You Change the Query Attached to a Report?

Posted on 2001-07-03
8
Medium Priority
?
380 Views
Last Modified: 2011-04-14
How Do You Change the Query Attached to a Report?

I'm working on a system developed by someone else entirely in MS Access.  I've done a little in Access here and there over the years, but I am not familiar with all the things going on in this particular system.

The system includes about 20 reports.  If I understand correctly, reports are tied to tables via queries.  How can I disconnect a report from one query and attach it to another?  Just wondering how this works.

Thanks.
0
Comment
Question by:Danimal
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
8 Comments
 
LVL 3

Expert Comment

by:kenspencer
ID: 6249849
Hi,

If you open a report in Design mode and look at the RecordSource property of the form, it will indicate what table/query it is bound to.

Ken
0
 
LVL 6

Accepted Solution

by:
cjswimmer earned 140 total points
ID: 6249865
Open the Database window (press F11) and click on the Reports tab.  select the report that you want to edit and click the Design button.  Doubleclick the little square at the intersection of the rulers along the report's edge and the properties for the report should pop up.  Click the Data tab in this dialog box and the first property 'Record Source' will display what query (or table) the report pulls its information from.  You can use the dropdown box to the right of the value to select another table or query, or you can press the button with three dots to make an SQL statement that will be used for this report.  If you use the SQL statement, you can save it from the query design screen and the report will automatically change the recordsource to the name of the query you just saved.  Please let me know if ou need any further information.  
0
 
LVL 6

Expert Comment

by:cjswimmer
ID: 6249867
doh!  too slow
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
LVL 1

Author Comment

by:Danimal
ID: 6250138
kenspencer, I opened a report in Design Mode, but could not find the "RecordSource property of the form."  This does sound like what I am looking for.  Can you tell me how to see the "RecordSource property of the form?"  I will be psyched!

Thanks.
0
 
LVL 6

Expert Comment

by:cjswimmer
ID: 6250147
you can follow the directions I posted to get to that property.
0
 
LVL 1

Author Comment

by:Danimal
ID: 6250149
cjswimmer!  Perfect answer!  You are da MAN!  

Thanks dude...

Stick around..I am new to VBA/Access...need to get something done that I am getting paid to do by the hour.  I got to get throught this stuff quick...but much of it is new to me.  I have dabbled in Access before, but VBA is new..

THERE WILL BE POINTS APLENTY!!!!!!!!
0
 
LVL 6

Expert Comment

by:cjswimmer
ID: 6250193
kenspencer, I'll post a 15 point question to split the points with you, since you posted first.  Here's the link:
http://www.experts-exchange.com/jsp/qManageQuestion.jsp?ta=msaccess&qid=20145371

Danimal - glad I could help
0
 
LVL 1

Author Comment

by:Danimal
ID: 6250266
very cool..point sharing.

listen, I am serious when I say I have points to give away.  I'll admit to opening this round of questions with a small number on the table (i.e., 35), but I'll double the points on any future question that is answered within 2 business hours (9 AM - midnight EDT, weekends/holidays excluded).

0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question