... AND DepositID = [Enter Deposit ID] OR [Enter Deposit ID] IS NULL
It's the same principle that we used earlier with the dates. We want all
records where the field matches the parameter or the parameter is Null.
--
Brendan Reynolds (MVP)
http://brenreyn.blogspot.com
The spammers and script-kiddies have succeeded in making it impossible for
me to use a real e-mail address in public newsgroups. E-mail replies to
this post will be deleted without being read. Any e-mail claiming to be
from brenreyn at indigo dot ie that is not digitally signed by me with a
GlobalSign digital certificate is a forgery and should be deleted without
being read. Follow-up questions should in general be posted to the
newsgroup, but if you have a good reason to send me e-mail, you'll find
a useable e-mail address at the URL above.
I have tried that.. I think I did not explain my problem properly..
here is the struture.. its table that collects information on deposits
we have 89 diffrent depositories in over 33 states and 5 diffrent
type of deposits type... so when deposit comes i enetr the date..
choose the depoisitory ID where the deposit was made(A number) and
enter a deposit type (again a number) and thats it
Both the depository ID and Deposit Type ID are seprate tables with
look up in the main table (I use drop down in the main table to
choose)
NOw if I want know deposits between XXX and XXXX date from depository
number XX and only Deposit Type XX ...I enetr the criteria and boom
.. the problem is I want this to be A PARAMETER query where if I run
the query the following dialog boxes pop up
ENTER BEGIN DATE>
ENTER END DATE>
ENTER DEPOSITORY ID>
ENTER DEPOSIT ID>
if the user enters all the data.. the query works fine... however...
say i dont want to filter by deposit type...Example: I want all type
of deposits in depository ID# 10 between april 1st and april
30th......so i guess i leave the "ENTER DEPOSIT ID" dialog box empty
and press enter.. it gives me nothing... now HOW do I fix this!!!!!!
"Brendan Reynolds" <brenreyn at indigo dot ie> wrote in message