[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

MS Access Report Display only 1 record

Posted on 2014-08-10
3
Medium Priority
?
2,119 Views
Last Modified: 2014-08-18
When working with Access Reports, I only want the report to display the current (latest) record I was working on.

On the attached database, let's assume the last Table Input I made was for John Smith under the record identified by InterviewID 1.

When viewing the Report, I do not want to see the sentences for the other names:  Jane Doe (record: InterviewID 2) or April Showers (record: InterviewID 3).

I'm pretty new to Access Reports—can someone walk me through the steps on how to do this?

Please see attached database.

Thanks.
testdatabase1.accdb
0
Comment
Question by:mdstalla
  • 2
3 Comments
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 40252285
I only want the report to display the current (latest) record I was working on.
...by this I will presume you mean the last record you had open on a form... (which is the only way I can see of doing this..., since users should not be entering records in the table directly)

The simplest way would be to use a button on the form to open the report.

See the modified sample
testdatabase1.accdb
0
 

Author Comment

by:mdstalla
ID: 40252295
Jeffrey:

Yes, I do mean the last record I had open on a Form.  I'd love to review your response, but I can't seem to open your attachment.  Onsted of opening Access, I get a web-based screen shot of a bunch of gibberish.

Any idea how I can view your updated database?
0
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 2000 total points
ID: 40252850
right click the attachment and select "Save As"
Then save it to your computer...
Then open it on your computer.

If that does not work, then simply make a form out of the table.
Put a button on the form.
Put code on the form like this:
   
    'Save the record
    DoCmd.RunCommand acCmdSaveRecord
    'Open the report to this record
    DoCmd.OpenReport "Report1", acViewPreview, , "InterviewID=" & Me.InterviewID

Open in new window


JeffCoachman
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

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

Windows Explorer let you handle zip folders nearly as any other folder: Copy, move, change, and delete, etc. In VBA you can also handle normal files and folders, but zip folders takes a little more - and that you'll find here.
Windows Explorer lets you open cabinet (cab) files like any other folder. In VBA you can easily handle normal files and folders, but opening and indeed creating cabinet files takes a lot more - and that's you'll find here.
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.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Suggested Courses

826 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