Is there any way I can have each record's controls refresh their conditional VB code for each record printed?
Specifically:
I have some simple VB code that conditionally hides a control in the form (depending what's in another control).
It works fluidly when browsing from record to record on-screen; however, when the form's records are printed, the conditional VB code is "skipped" leaving "un-refreshed" controls for each record/page.
I realize that, when it comes to printing, forms are less easily manupilated than reports. However, I can not add the same conditional VB code actions to controls in a report as I can in a form (can I?).
Sample Code:
Private Sub Form_Current()
If Len(Forms![My Form]![FieldA] = 0) Then
Forms![Equipment Profile]![Check100] = True
Else
Forms![My Form]![Check100] = False
End If
Specifically:
I have some simple VB code that conditionally hides a control in the form (depending what's in another control).
It works fluidly when browsing from record to record on-screen; however, when the form's records are printed, the conditional VB code is "skipped" leaving "un-refreshed" controls for each record/page.
I realize that, when it comes to printing, forms are less easily manupilated than reports. However, I can not add the same conditional VB code actions to controls in a report as I can in a form (can I?).
Sample Code:
Private Sub Form_Current()
If Len(Forms![My Form]![FieldA] = 0) Then
Forms![Equipment Profile]![Check100] = True
Else
Forms![My Form]![Check100] = False
End If