G
Guest
Hi!
I'm making a database on fire hydrants of a city. I have 2 main tables: one
with the characteristics of the hydrant (ID, emplacement, model,etc.) and one
with interventions made by employees on this hydrant. This table contains the
hydrant id, a date field, many yes/no fields (about 20) that describe the
problems and interventions (problem to the valve, problem to the bolts,... ,
interior washed, drained,... and a functional field).
I want to make a user friendly form that will ask the user what kind of
report he wants to print. For example, he will choose between the list of
yes/no fields, like problem to the valve, and this will print a report with
the hydrant numbers and their emplacement based on a query that finds the
hydrants with a valve problem at the latest intervention. I already designed
the code for that kind of query, but I have over 20 fields.
Right now, the only solution that I have in mind is to create about 20
queries that will return me the hydrants with certain problems. But I will
have to do 20 reports too. The code for the queries is the same except that
the yes/no fields are different. The code of the report is the same except
for the title, which is the name of the intervention/problem of the hydrant.
I'd like to known if there is a way to make only one query and one report,
that will automatically change the code of the query and the report depending
of the option chosen or do I have to create those 20 queries ?.?.?
Before the printing, I want another form that will pop up and count the
total number of hydrant with these problems, (if there are none, the user
won' have to print a blank page...) will I have to create 20 forms too or can
I do this automatically ?
Thanks a lot
Louis Pat
I'm making a database on fire hydrants of a city. I have 2 main tables: one
with the characteristics of the hydrant (ID, emplacement, model,etc.) and one
with interventions made by employees on this hydrant. This table contains the
hydrant id, a date field, many yes/no fields (about 20) that describe the
problems and interventions (problem to the valve, problem to the bolts,... ,
interior washed, drained,... and a functional field).
I want to make a user friendly form that will ask the user what kind of
report he wants to print. For example, he will choose between the list of
yes/no fields, like problem to the valve, and this will print a report with
the hydrant numbers and their emplacement based on a query that finds the
hydrants with a valve problem at the latest intervention. I already designed
the code for that kind of query, but I have over 20 fields.
Right now, the only solution that I have in mind is to create about 20
queries that will return me the hydrants with certain problems. But I will
have to do 20 reports too. The code for the queries is the same except that
the yes/no fields are different. The code of the report is the same except
for the title, which is the name of the intervention/problem of the hydrant.
I'd like to known if there is a way to make only one query and one report,
that will automatically change the code of the query and the report depending
of the option chosen or do I have to create those 20 queries ?.?.?
Before the printing, I want another form that will pop up and count the
total number of hydrant with these problems, (if there are none, the user
won' have to print a blank page...) will I have to create 20 forms too or can
I do this automatically ?
Thanks a lot
Louis Pat