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  

Increase Efficiency



 
 
Thread Tools Display Modes
  #1  
Old August 8th, 2007, 11:32 AM posted to microsoft.public.access.forms
SGTPEP
external usenet poster
 
Posts: 33
Default Increase Efficiency

Currently i have two seperate querys via a form.

One querys info from the a network of offices and the other querys on an
office by office basis using a combo box.

I would like to combine this so in the combo box there would be an option to
query all offices at once


Thanks
  #2  
Old August 8th, 2007, 03:26 PM posted to microsoft.public.access.forms
Klatuu
external usenet poster
 
Posts: 7,074
Default Increase Efficiency

First, go to this site to see how to add "All" to a combo so the user can
choose that option:
http://www.mvps.org/access/forms/frm0043.htm

Now, in your query, put something like this in criteria row of the Office ID
field:

LIKE IIf([Forms]![MyFormName]![cboOffice] = "All", "*",
[Forms]![MyFormName]![cboOffice])

Of course, use the real names
--
Dave Hargis, Microsoft Access MVP


"SGTPEP" wrote:

Currently i have two seperate querys via a form.

One querys info from the a network of offices and the other querys on an
office by office basis using a combo box.

I would like to combine this so in the combo box there would be an option to
query all offices at once


Thanks

 




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 12:44 AM.


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