Solved: Look Up a Record

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Jiimandjo

Thread Starter
Joined
Nov 30, 2010
Messages
10
How do I choose just 1 record for a report that will be printed out? In my case, I want to print a list of phone numbers that a client is allowed to call. The client's name is in the first table and the phone numbers are in another table.
Thanks:)
 

karlhaywood

Account Closed
Joined
Jan 17, 2010
Messages
680
Ok in the criteria field of the query that feeds the data to the report you need this in the id

forms![formname]![Controlname]

formname being the actual name of your form and controlname being the name of your id field.

you will also need a button on the form, with the below code attached

DoCmd.OpenReport "YourReportName", AcViewPreview

YourReportName being the actual name of your report

Hope this helps you.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Top