Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with User Defined Report

Status
Not open for further replies.

jdegeorge

Programmer
Mar 19, 2002
1,313
US
Hi:

I have a report with pre-defined fields (such as NAME, ADDRESS, CITY, STATE, ZIP, PHONE, etc.). I need several versions of this report based on different combinations of NAME, CITY and STATE.

How can I have only one REPORT and let the user define the NAME, CITY and STATE, where they can input values for SOME or ALL of the 3 fields? Is this possible? Thanks in advance.


Jim DeGeorge [wavey]
 
Jim,

I don't know if this is still a problem for you or not, but here goes....

In your query, define the criteria for each field like the following syntax, straight across the grid so the criteria will be "ANDed", not "ORed":

For the "NAME" field:
Code:
 Like [Please enter the NAME] & "*"

For the "CITY" field:
Code:
 Like [Please enter the CITY] & "*"

For the "STATE" field:
Code:
 Like [Please enter the STATE] & "*"

This way, if nothing is entered, all records will be returned....




A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.
Douglas Adams
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top