We have created a form listing members' costs and options based on their category. We would like to have one of two lookup tables become visible at a time. For example, if a member is full-time, the full time cost table would become visible; if the member is part-time then the part-time table becomes visible. On the form, we have placed two unbound list boxes each linked to one of the tables.
On current event, is the code:
Private Sub Form_Current()
Me.tblFullTimeRate.Visible = False
Me.tblPartTimeRate.Visible = False
If Me.txtFT_PT = 1 Then
Me.tblFullTimeRate.Visible = True
ElseIf Me.txtFT_PT = 2 Then
Me.tblPartTimeRate.Visible = True
End If
This works fine on screen. However, it does not print with the correct data. Why not?
Thank you.
On current event, is the code:
Private Sub Form_Current()
Me.tblFullTimeRate.Visible = False
Me.tblPartTimeRate.Visible = False
If Me.txtFT_PT = 1 Then
Me.tblFullTimeRate.Visible = True
ElseIf Me.txtFT_PT = 2 Then
Me.tblPartTimeRate.Visible = True
End If
This works fine on screen. However, it does not print with the correct data. Why not?
Thank you.