Newbie - display query results

A

Alan T

I want to display the result of a query:
SELECT EmployeeNumber, FirstName, LastName, DOB, Address FROM Employee

What control I should put onto the detail band of the report?
 
D

Duane Hookom

Use text boxes to display field values. Set your report's record source
property to your query.
 
A

Alan T

I need to display the query report as master-details report, so I created a
report with master information such as
EmployeeName, Addresss, Phone

then put the sub-report onto that, this sub-report will contina the orders
that the employee created.
However, how do I make the sub-report expand itself?
 
A

Alan T

Ah, yes, the subreport expands itself.
But how do I display the header section? I put some text in the
header-section of subreport but it did not show on the main report.
 
D

Duane Hookom

Page sections don't display in subreports. You can create a fake page header
by creating a new primary sorting and grouping level in the subreport and
set its Field/Expression to a constant like
=1
Display the =1 group header and set its Repeat Section property to Yes.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top