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  dBforums > PC based Database Applications > Microsoft Access > Query Access 2007 Table Using Multiple Combo Boxes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-13-12, 16:01
TreadingLightly TreadingLightly is offline
Registered User
 
Join Date: Jun 2012
Posts: 1
Query Access 2007 Table Using Multiple Combo Boxes

Hello,

I am new to Microsoft Access so please forgive my ignorance. Using Access 2007, I would like to build a database that uses multiple combo boxes to query a master table. I have already set up several combo boxes on a form that I want use to query the data contained in the master table.

Should I build a separate query using the query builder and then somehow link the query to the selections made on the master table?

Or should I use the “Event Builder” under each combo box to query the master table like this:
"SELECT [Name], [Area] FROM [MasterTable]"

Would I then have to run a second Event Builder query under the “OK” button like this:
"SELECT [Name] FROM [table] WHERE [FirstName] = 'Whatever was selected'" under the "OK" button?


Thank you,

Phil
Reply With Quote
  #2 (permalink)  
Old 07-14-12, 10:10
sps sps is offline
Registered User
 
Join Date: Aug 2004
Location: Cary, NC
Posts: 264
If the combo boxes do not rely on each other (the data displayed in them is not based on the value chosen in another) and your query is displayed when you hit OK, then why not just have the query under the OK button?

You would just check all the combo boxes and if there is a value chosen add it to your where clause like you did.

What I don't understand is if you already have a combo that is displaying a list of names, what is the value of building a query under the OK button to display the names?
__________________

Steve
Reply With Quote
  #3 (permalink)  
Old 07-15-12, 05:41
AshutoshKarmakar AshutoshKarmakar is offline
Registered User
 
Join Date: Jul 2012
Posts: 1
Can anybody help me to do data entry. Say, I have a address list and there have a Unique Number like client ID. When I want to entry data in my database only I entry that client's ID all other data will entry automatically. like- I will entry 2013 (client ID) other information of the client like address1, address2, District, phone number, credit card number all will entry automatically. Can anybody help me in a very simple way?

Thanks Ashutosh
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On