OK, searched all over for this one, with no luck, hoping some experts can help me. Setup a main form with 2 subforms, where if certain criteria was met one subform shows up, otherwise the other shows up over it. One is hidden at all times. Works great, and that was found here:
http://www.experts-exchange.com/Microsoft/Development/MS_Access/Access_Forms/Q_22946130.html The code used inside of the form is:
Sub SetFormCo2Visibility()
Select Case Me.Mach
Case 480, 802
Me.subformCO2.Visible = True
Me.subformYAG.Visible = False
Case Else
Me.subformYAG.Visible = True
Me.subformCO2.Visible = False
End Select
End Sub
and this was called on the On Click Event. My problem is this. When I print this, as I suspected, the current record in the main form prints, but only after the records inside of the subform print before it, looking like this, e.g.
Subform Record 1
Subform Record 2
Subform Record 3, etc...
Main Form Record 1
My question is this. Is it possible, either through a AutoKeys function to print the form, or through printing the form in a report format, to duplicate this for printing purposes?