W
william
Hello Everyone,
I'm using Access 2000 and am hoping someone can point me in the right
direction.
I've developed a room inspection database for someone at a hotel. The
database has an inspections table with about 30 fields. Each of the 30
fields represents an item in a room where a "condition" value will be
entered. For example, the [carpet] field will contain a value of good,
excellent, replace, paint, etc.
The manager would like to have a query form where she can select up to
five items from the inspection table, (carpet, toilet, walls, sink,
bed, etc.) and then select a corresponding condition. For example, she
would like to see rooms that need both the carpet replaced and the
walls painted by having the results in a subform datasheet. She can
then have the option of printing the results. She must have the option
of selecting more than one room item and its corresponding condition.
I thought about having the query form with five combo boxes containing
all 30 fields from the inspection and five combo boxes containing the
different conditon values. For example:
Parameter 1: Carpet Conditon1: Replace
Parameter 2: Walls Condition2: Paint
Or
Parameter1: Bed Condition1: Excellent
Parameter2: Sink Condition2: Good
But I don't know how those variables could get passed to the inspection
query. It's as though the query form needs code that says--search the
Inspections table, find the [Carpet] field, return those records where
the [Carpet] field has "replace" for the value.
If anyone can point me in the right direction with some suggestions, I
would certainly appreciate it.
Thanks for your help.
William
I'm using Access 2000 and am hoping someone can point me in the right
direction.
I've developed a room inspection database for someone at a hotel. The
database has an inspections table with about 30 fields. Each of the 30
fields represents an item in a room where a "condition" value will be
entered. For example, the [carpet] field will contain a value of good,
excellent, replace, paint, etc.
The manager would like to have a query form where she can select up to
five items from the inspection table, (carpet, toilet, walls, sink,
bed, etc.) and then select a corresponding condition. For example, she
would like to see rooms that need both the carpet replaced and the
walls painted by having the results in a subform datasheet. She can
then have the option of printing the results. She must have the option
of selecting more than one room item and its corresponding condition.
I thought about having the query form with five combo boxes containing
all 30 fields from the inspection and five combo boxes containing the
different conditon values. For example:
Parameter 1: Carpet Conditon1: Replace
Parameter 2: Walls Condition2: Paint
Or
Parameter1: Bed Condition1: Excellent
Parameter2: Sink Condition2: Good
But I don't know how those variables could get passed to the inspection
query. It's as though the query form needs code that says--search the
Inspections table, find the [Carpet] field, return those records where
the [Carpet] field has "replace" for the value.
If anyone can point me in the right direction with some suggestions, I
would certainly appreciate it.
Thanks for your help.
William