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 » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Select records from 6 combo boxes



 
 
Thread Tools Display Modes
  #1  
Old July 17th, 2008, 09:36 AM posted to microsoft.public.access.queries
Shiva
external usenet poster
 
Posts: 19
Default Select records from 6 combo boxes

Hi,
I am in urgency to create a form having 6 combo boxes on it which is
supposed to select data from a table containing a huge data. I want to add a
click button to run select query based on combo box selections?
Can anyone help me treating me fresh in Access database
  #2  
Old July 17th, 2008, 01:03 PM posted to microsoft.public.access.queries
Al Campagna[_2_]
external usenet poster
 
Posts: 1,462
Default Select records from 6 combo boxes

Shiva,
Let's say your form is called frmCriteria, and on that form you have one
combo box called cboCity. cboCity will provide the City criteria for a
query.
In your query, the criteria for your City field would be...
Like Forms!frmCriteria!cboCity & "*"

If you select New York, only New York records will be returned.
If you leave cboCity blank, all cities will be returned.

Now, just use that same logic to set up other combos on your form. For
example cboState, or cbo Country, etc... etc...
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."

"Shiva" wrote in message
...
Hi,
I am in urgency to create a form having 6 combo boxes on it which is
supposed to select data from a table containing a huge data. I want to add
a
click button to run select query based on combo box selections?
Can anyone help me treating me fresh in Access database



 




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


All times are GMT +1. The time now is 01:35 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.