Choosing a Specific Record To Print a Report

G

Guest

I have a table with many records. The primary key or record Id is quite long
and complicated to type. Is there an easy way for the user to be able to pick
the record they want to print for a report without having to type in the
complex key field to ask for the record they want??? The field does have an
imput mask.
Anyway to be able to pick from a list of existing records??
 
G

Guest

Hi LilBomShl,

Place the command button to print the record on the form that you are
displaying the data on, and then have the query powering the report pick up
the ID field like this:

select * from TABLENAME where IDFIELD = forms!FORMNAME.IDFIELDNAME

Hope this helps.

Damian.
 
G

Guest

You can create a form with two objects on it
1. ComboBox where you can display all the Keys from the table, so the user
wont have to type the key, or type few chr and the combo will AutoComplete
the value for the user to choose from, then you can use the link I gave you
in the prev post.

You can use the combo name instead of the records as the link describe

2. Button to open the Report

http://www.databasedev.co.uk/report_from_form_record.html
 
G

Guest

Thank you!! I will try this.

LiL

Ofer Cohen said:
You can create a form with two objects on it
1. ComboBox where you can display all the Keys from the table, so the user
wont have to type the key, or type few chr and the combo will AutoComplete
the value for the user to choose from, then you can use the link I gave you
in the prev post.

You can use the combo name instead of the records as the link describe

2. Button to open the Report

http://www.databasedev.co.uk/report_from_form_record.html
 

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