Hello Forum,
I have been trying for several days to develope a form to supply parameters to a query and a report in my database.
the sample code in the form's On open Event procedure as as below :
I would very much like for the form to pass the same user parameters (Facility Name, Starting Month, Ending Month, Starting Year and Ending Year) to the report developed from the query but i have not been successful.
My VBA knowledge is quite limited.
Kindly assist,
DrDoIT.
I have been trying for several days to develope a form to supply parameters to a query and a report in my database.
the sample code in the form's On open Event procedure as as below :
Option Compare Database
Private Sub Ok_Click()
Me.Visible = False
DoCmd.OpenQuery "711ARTData Query", acViewNormal, acEdit
DoCmd.Close acForm, "Parameter Form"
End Sub
Private Sub Form_Open(Cancel As Integer)
End Sub
The form is named "Parameter Form" and the query "711ARTData Query" and this portion works well.Private Sub Ok_Click()
Me.Visible = False
DoCmd.OpenQuery "711ARTData Query", acViewNormal, acEdit
DoCmd.Close acForm, "Parameter Form"
End Sub
Private Sub Form_Open(Cancel As Integer)
End Sub
I would very much like for the form to pass the same user parameters (Facility Name, Starting Month, Ending Month, Starting Year and Ending Year) to the report developed from the query but i have not been successful.
My VBA knowledge is quite limited.
Kindly assist,
DrDoIT.