A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How can I design a form to select information from a query



 
 
Thread Tools Display Modes
  #1  
Old June 16th, 2005, 08:45 PM
2 Tall
external usenet poster
 
Posts: n/a
Default 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  
Old June 20th, 2005, 01:20 PM
Michel Walsh
external usenet poster
 
Posts: n/a
Default

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 11:31 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.