J
JWCrosby
I have a report based on a simple query. One of the fields in the query is
BuildingName.
I also have a form with three command buttons on it, each labeled with the
name of a different building. I want to be able to select which building name
to use as a parameter for the report by clicking the corresponding command
button, thus sending the BuildingName parameter to the report query.
I am having trouble coding the DoCmd.OpenReport line to pass the
BuildingName to the report query.
I know I could make three separate, but identical, reports each with a
slightly different query and have each button activate a different report,
but I'd like to have just one report design to contend with.
Thanks in advance for any help.
Jerry
BuildingName.
I also have a form with three command buttons on it, each labeled with the
name of a different building. I want to be able to select which building name
to use as a parameter for the report by clicking the corresponding command
button, thus sending the BuildingName parameter to the report query.
I am having trouble coding the DoCmd.OpenReport line to pass the
BuildingName to the report query.
I know I could make three separate, but identical, reports each with a
slightly different query and have each button activate a different report,
but I'd like to have just one report design to contend with.
Thanks in advance for any help.
Jerry