If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
How can I design a form to select information from a query
I want the form designed with drop down capability to look at a query; select
the person from the drop down box; then select only that individual; so I then can print an individual report for that person only. I have already designed the form, query and the report. I just can't get it to select that individual persons record. Instead, it pulls up the whole database. Thanks in advance for any assitance anyone can give me, to resolve this problem. |
#2
|
|||
|
|||
Hi,
The standard procedure is to use the WhereCondition argument of the DoCmd.OpenReport to filter the report to only the records that satisfy the criteria. DoCmd.OpenReport "ReportName", WhereCondition:="ClientID=" & ClientID if ClientID is numerical, DoCmd.OpenReport "ReportName", WhereCondition:="ClientID='" & ClientID & "'" with the appropriate ' delimiter, if ClientID is a string. Hoping it may help, Vanderghast, Access MVP "2 Tall" 2 wrote in message ... I want the form designed with drop down capability to look at a query; select the person from the drop down box; then select only that individual; so I then can print an individual report for that person only. I have already designed the form, query and the report. I just can't get it to select that individual persons record. Instead, it pulls up the whole database. Thanks in advance for any assitance anyone can give me, to resolve this problem. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ECHO Causing Problems | DS | General Discussion | 5 | May 17th, 2005 02:19 AM |
strategy for data entry in multiple tables | LAF | Using Forms | 18 | April 25th, 2005 04:04 AM |
Design help, please | SillySally | Using Forms | 27 | March 6th, 2005 05:11 AM |
Need query to separate 2 entry types in a table field | Jan Il | Running & Setting Up Queries | 31 | November 23rd, 2004 06:57 PM |
Cursor Positioning | Colin Hammond | General Discussion | 3 | November 2nd, 2004 09:42 PM |