473,405 Members | 2,300 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

How do i view the SQL statements behind an existing report

I am working with the Invoice report in the Northwind sample database.

How can I see the SQL statement that provides the data to the report?

Thanks.
Nov 13 '05 #1
3 14084
On Wed, 26 Jan 2005 03:07:43 GMT, to***@yahoo.com wrote:
I am working with the Invoice report in the Northwind sample database.

How can I see the SQL statement that provides the data to the report?

Thanks.


Open the report in Design View.
Show the report properties window.
Click on the Data tab.
The first property is RecordSource.
Click on that line, then click on the button with the 3 dots that
appears.
That opens the QBE query window. Click on the View tool button arrow.
Select SQL.
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
Nov 13 '05 #2
On Wed, 26 Jan 2005 03:27:05 GMT, fredg <fg******@example.invalid>
wrote:
On Wed, 26 Jan 2005 03:07:43 GMT, to***@yahoo.com wrote:
I am working with the Invoice report in the Northwind sample database.

How can I see the SQL statement that provides the data to the report?

Thanks.


Open the report in Design View.
Show the report properties window.
Click on the Data tab.
The first property is RecordSource.
Click on that line, then click on the button with the 3 dots that
appears.
That opens the QBE query window. Click on the View tool button arrow.
Select SQL.


When I try to do this I only see ControlSource in the Data section.
Am I using the right tool.

When you say "Show the report properties window." do you mean click
the properties for the field I want to see? Or do you mean that I
should be able to get properties for the report itself. Because I
can't find anything like that.

Thanks.
Nov 13 '05 #3
Bookreader <bo***********@yahoo.com> wrote in
news:j2********************************@4ax.com:
On Wed, 26 Jan 2005 03:27:05 GMT, fredg
<fg******@example.invalid> wrote:
On Wed, 26 Jan 2005 03:07:43 GMT, to***@yahoo.com wrote:
I am working with the Invoice report in the Northwind sample
database.

How can I see the SQL statement that provides the data to
the report?

Thanks.
Open the report in Design View.
Show the report properties window.
Click on the Data tab.
The first property is RecordSource.
Click on that line, then click on the button with the 3 dots
that appears.
That opens the QBE query window. Click on the View tool button
arrow. Select SQL.


When I try to do this I only see ControlSource in the Data
section. Am I using the right tool.

After you opened the report in design view you clicked on
something (a control) you were not instructed to above before
opening the properties window.
When you say "Show the report properties window." do you mean
click the properties for the field I want to see? Or do you
mean that I should be able to get properties for the report
itself. Because I can't find anything like that.
He meantproperties for the report itself.
To get back to the report itself, after having clicked a
control, find a little square in the frame at the intersection
of the horizontal and vertical rulers. Click once, a little
black square appears, and the properties change to those of the
form/report.

Thanks.

Welcome.
--
Bob Quintal

PA is y I've altered my email address.
Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Balance | last post by:
How do I create a view? I've read the help page on the mysql.org site but still cannot get create view employee as select emp.name from emp, dept where dept.id=emp.dept; The select...
2
by: Carl | last post by:
When my report opens my pop-up form (which is not modal) appears on top of the report. I use the on No Data event to show a message to the user if no records are to be displayed and then when OK...
0
by: CSDunn | last post by:
Hello, I have a format issue on an Access 2000 ADP report that I am going to attempt to explain from a 'ten thousand foot view' : I have an Access 2000 ADP report that has a SQL Server 2000...
0
by: tommy | last post by:
I am working with the Invoice report in the Northwind sample database. How can I see the SQL statement that provides the data to the report? Thanks.
0
by: patang | last post by:
In my VB.Net Project, I have a couple of reports (first.rpt, second.rpt etc). Initially, when I created the reports I put them in the Solutions folder. Accidently I excluded the rpt files from the...
2
by: Mark | last post by:
I am trying to view (with the option to print) a MS Access Report from a Menu Item Click event. Can anyone help me. *** Sent via Developersdex http://www.developersdex.com ***
1
by: gregoryenelson | last post by:
Hi all. I have created a Report with a graph also on it. The users, working through a form only (not the DB window) will want to view that Report run numbers of times against different criteria,...
1
by: Newbie | last post by:
I am pretty new to Access Reports. I used the wizard to write a detail report that works well. In the group footer, I would like to show the totals for each column in my report. So, I wrote...
1
NeoPa
by: NeoPa | last post by:
I'm currently using Access 2003 on an XP machine. When my report opens, the size of the report always seems to be such that it fits a whole page in the window. The View Percentage in the Print...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.