E
Eric
I am trying to print a report that is based on a query
from a form using a command button. The report contains
information from both the main form and a sub form. The
information for the report comes from a query based on the
two tables the form populates. I need to filter the query
with a criteria from the subform. For example, each job in
the main form can have many change orders in the sub form.
I want the filter for the query to be passed from the sub
form based on the current record in the sub form, a text
box that contains the change order number. Can I pass it
directly to the Query from the sub form or does it go to a
variable first? Can someone give me syntax for my command
button?
from a form using a command button. The report contains
information from both the main form and a sub form. The
information for the report comes from a query based on the
two tables the form populates. I need to filter the query
with a criteria from the subform. For example, each job in
the main form can have many change orders in the sub form.
I want the filter for the query to be passed from the sub
form based on the current record in the sub form, a text
box that contains the change order number. Can I pass it
directly to the Query from the sub form or does it go to a
variable first? Can someone give me syntax for my command
button?