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  

Multiple queries vs. one query



 
 
Thread Tools Display Modes
  #1  
Old June 24th, 2008, 03:49 PM posted to microsoft.public.access.queries
shannaj via AccessMonster.com
external usenet poster
 
Posts: 35
Default Multiple queries vs. one query

I need help. Right now I use three queries with certain criteria in each one
to access three versions of the same format of form. It is kind of a
nuisance right now because if I make a change to the form. I have to change
all three forms as well and now I am using a subform in this as well, which
means I am going to have to be 3 copies as well because of the macro I am
using. What I would like to do is to use one query to access one form to
ease the nuisance of having to change all three forms. I have tried to paste
my criteria on 3 rows in the query, this works fine exept I get the perameter
messages. Is there any way to get away from having perameter messages, or
another way to get this done?

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...eries/200806/1

  #2  
Old June 24th, 2008, 04:06 PM posted to microsoft.public.access.queries
Allen Browne
external usenet poster
 
Posts: 11,706
Default Multiple queries vs. one query

Where are these queries headed?

For many situations, you can provide a form with unbound controls where the
user can enter the critiera they wish to use. You then build a filter string
from the controls they used, and apply it as the Fitler for your form, or
the WhereCondition for OpenReport.

Here's a sample database to pull apart and see how this works:
Search form - Handle many optional criteria
at:
http://allenbrowne.com/ser-62.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"shannaj via AccessMonster.com" u36075@uwe wrote in message
news:86283c20e675f@uwe...
I need help. Right now I use three queries with certain criteria in each
one
to access three versions of the same format of form. It is kind of a
nuisance right now because if I make a change to the form. I have to
change
all three forms as well and now I am using a subform in this as well,
which
means I am going to have to be 3 copies as well because of the macro I am
using. What I would like to do is to use one query to access one form to
ease the nuisance of having to change all three forms. I have tried to
paste
my criteria on 3 rows in the query, this works fine exept I get the
perameter
messages. Is there any way to get away from having perameter messages, or
another way to get this done?


  #3  
Old June 24th, 2008, 09:03 PM posted to microsoft.public.access.queries
shannaj via AccessMonster.com
external usenet poster
 
Posts: 35
Default Multiple queries vs. one query

Thank you so much, it looks like this is exactly what I am looking for. One
of the problems I am finding is in my code for cmdFilter Click. My first
code is giving me a Compile error: Variable not defined for my strWhere =
strWhere. Is there something I am doing wrong?

Allen Browne wrote:
Where are these queries headed?

For many situations, you can provide a form with unbound controls where the
user can enter the critiera they wish to use. You then build a filter string
from the controls they used, and apply it as the Fitler for your form, or
the WhereCondition for OpenReport.

Here's a sample database to pull apart and see how this works:
Search form - Handle many optional criteria
at:
http://allenbrowne.com/ser-62.html

I need help. Right now I use three queries with certain criteria in each
one

[quoted text clipped - 11 lines]
messages. Is there any way to get away from having perameter messages, or
another way to get this done?


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...eries/200806/1

  #4  
Old June 24th, 2008, 10:11 PM posted to microsoft.public.access.queries
shannaj via AccessMonster.com
external usenet poster
 
Posts: 35
Default Multiple queries vs. one query

Nevermind, thank you so much, I figured out what I was doing wrong.

shannaj wrote:
Thank you so much, it looks like this is exactly what I am looking for. One
of the problems I am finding is in my code for cmdFilter Click. My first
code is giving me a Compile error: Variable not defined for my strWhere =
strWhere. Is there something I am doing wrong?

Where are these queries headed?

[quoted text clipped - 13 lines]
messages. Is there any way to get away from having perameter messages, or
another way to get this done?


--
Message posted via http://www.accessmonster.com

 




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 04:34 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.