Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

reports

ResolvedVersion 2003

Dennis has attended:
Access Intermediate course

Reports

How do your print the current field of a form onto a report?

RE: Reports

Hello Dennis,

Hope you enjoyed your Microsoft Access course with BEST STL Training.
Thank you for your question regarding Forms and Reports.

One way to thnk about the current field or record in a form (or report), is simply a row or record in a table. So when you are seeing a particular record showing in a form, you can get the same information to show in a report.

To do this, your report must have the same Record Source as the Form. So if your Form is pointing to a specific query or Table, then you r form must do the same.

Make sure your report has all the fields showing in the layout that you want to have on the report.

Generally the record number that you see on the navigation area of a form (bottom numbers), will let you know which record you are currently viewing. If you then view the report with the same source, you should see the same record.

-----

You can make this process more dynamic by getting the report to open the exact record, based on the form. To do this you need a understand how to use the command button from the toolbox, as well as be familair with adding a query to the source of the report, that uses the forms record to filter its results.

1. Make a report using the wizard that uses the same source as the Form.

2. Go to the Report design view, and under Record Source, click the 3 dots at the end of the field.

3. This will open a query window where you can specify a filter for the results. Go to the Primary Key field (which ever one that is), and then RIGHT CLICK in the criteria area. Then Choose BUILD.

4. This will open a expression builder window. In the bottom left window, click FORMS> ALL FORMS > YOUR FORM
Then in the middle window, choose the field that is the same as the Primay Key for the records. This will be the same field as the one you identified on the report.
Click OK.
Close the query, CLick YES.
Save and close the Report.

Essentially, here you are telling the report to use the current record of the form to filter the records in the report.

5. The last step here is to put a button on the Form that will open the report. Simply go to the Form design view, and then using the TOOLBOX, add a COMMAND BUTTON to the form. Using the wIzard, tell the button to open the report
you just made modifications to.

Save and preview the form, clicking the new command button.

All done - your report should now open to the record you were showing on the form.

I hope this resolves your question. If it has, please mark this question as resolved.

If you require further assistance, please reply to this post.
Or perhaps you have another Microsoft Office question?

Have a great day.
Regards,

Richard
Microsoft Office Specialist Trainer

Access tip:

Create own ribbon tab - Access 2010

a. In Access click on the File tab
b. Select Options from left hand side
c. Choose the Customize Ribbon section
d. Click the New Tab button (below the list of tabs on the right hand side of the dialog box)
e. Select the New Tab (Custom) and enter a name, by clicking the Rename button (below the list of tabs on the right hand side of the dialog box)
f. Select the New Group (Custom) and enter a name, by clicking the Rename button (below the list of tabs on the right hand side of the dialog box)
g. Add commands to your tab and group by locating them on the list on the right hand side (remembering that you can change the list using the drop down box at the top of the list of commands) and clicking the Add button between the two panes to add them to your tab and group
h. You can rearrange the commands in your group, the groups on any tab or the tabs, using the up and down arrow buttons beside the list of tabs.
i. Click OK to apply your changes

View all Access hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.