FurryGorilla
Technical User
I've been trying to implement a lookup page on an access database. There are 7 fields which allow the user to narrow down the field based on the amount of information they enter, however I do not want it so they have to fill in every field as they would more or less have to know the record they wanted.
The field names are clockno, shift, startdate & enddate which are combined to form the search, workcell, activity, and opno.
Is there a way of doing this without writing out every combination of query, using an excessive amount of if..else statements, and without splitting the page into separate pages?
An example of the SQL (wrong forum I know) is as follows (not all one line):
[tt]Query="SELECT * FROM oee WHERE clockno = &request("clock"&" AND shift = '"&request("shift"&"' AND date BETWEEN #"&startdate&"# AND #"&enddate&"# AND cell = "&request("workcell"&" AND actcode = "&request("act"&" AND opno = "&request("opno"[/tt]
Thanks in advance
Chris
The field names are clockno, shift, startdate & enddate which are combined to form the search, workcell, activity, and opno.
Is there a way of doing this without writing out every combination of query, using an excessive amount of if..else statements, and without splitting the page into separate pages?
An example of the SQL (wrong forum I know) is as follows (not all one line):
[tt]Query="SELECT * FROM oee WHERE clockno = &request("clock"&" AND shift = '"&request("shift"&"' AND date BETWEEN #"&startdate&"# AND #"&enddate&"# AND cell = "&request("workcell"&" AND actcode = "&request("act"&" AND opno = "&request("opno"[/tt]
Thanks in advance
Chris