G
Guest
Hello there! I am using Access XP and have a question about using criteria to
retrieve records. In the query, there are roughly 50 fields associated with a
table. Right now I am trying to create a query that will retrieve records
based upon 2 fields called AcctNumber and AcctType. In the query fields I
have the following code:
Field:AcctType
Table:Master
Sortblank)
Showchecked)
Criteria:[Enter AcctType:]
or: Is Null
Field:AcctNumber
Table:Master
Sortblank)
Showchecked)
Criteria:Between [Enter Minimum 3 Digit Account (00X Format):] And [Enter
Maximum 3 Digit Account (XXX Format):]
or:Is Null
Basically, I would like the program to retrieve reccords based upon either
AcctNumber, AcctType, Both AcctNumber & AcctType, or retrieve all records if
the prompt boxes are left blank. I don't know if I've overlooked something
but it seems if I do not fill in both fields (AcctNumber or AcctType) or only
fill in one field or leave the fields blank, my query retrieves nothing...any
suggestions? I've read the other posts about writing a SQL statement and
that's not a problem except I don't know how I would go about doing it. Any
help would be apprecciated!
retrieve records. In the query, there are roughly 50 fields associated with a
table. Right now I am trying to create a query that will retrieve records
based upon 2 fields called AcctNumber and AcctType. In the query fields I
have the following code:
Field:AcctType
Table:Master
Sortblank)
Showchecked)
Criteria:[Enter AcctType:]
or: Is Null
Field:AcctNumber
Table:Master
Sortblank)
Showchecked)
Criteria:Between [Enter Minimum 3 Digit Account (00X Format):] And [Enter
Maximum 3 Digit Account (XXX Format):]
or:Is Null
Basically, I would like the program to retrieve reccords based upon either
AcctNumber, AcctType, Both AcctNumber & AcctType, or retrieve all records if
the prompt boxes are left blank. I don't know if I've overlooked something
but it seems if I do not fill in both fields (AcctNumber or AcctType) or only
fill in one field or leave the fields blank, my query retrieves nothing...any
suggestions? I've read the other posts about writing a SQL statement and
that's not a problem except I don't know how I would go about doing it. Any
help would be apprecciated!