B
benj
I have a main form and several subforms (tab control named NEC, HISTO and BLD
CHEM). The subform BLD CHEM also have a subform (tab control named RBC and
SE). I created a print preview icon on the main form. I entered the code:
Select Case Me.TabCtl23.Pages(Me.TabCtl23).Name
Case "NEC"
stDocName = "RF_necropsy"
Case "HISTO"
stDocName = "RF_histo1"
Case "BLD CHEM"
Select Case Me.TabCtl5.Pages(me.TabCtl5).Name
Case "RBC"
stDocName = "RF_routinebldchem"
Case "SE"
stDocName = "RF_specialbldchem"
End Select
End Select
but when i preview BLD CHEM, a message "microsoft can't find the field
'TabCt15'referred to in your expression". How can i fix this problem?
thanks!
CHEM). The subform BLD CHEM also have a subform (tab control named RBC and
SE). I created a print preview icon on the main form. I entered the code:
Select Case Me.TabCtl23.Pages(Me.TabCtl23).Name
Case "NEC"
stDocName = "RF_necropsy"
Case "HISTO"
stDocName = "RF_histo1"
Case "BLD CHEM"
Select Case Me.TabCtl5.Pages(me.TabCtl5).Name
Case "RBC"
stDocName = "RF_routinebldchem"
Case "SE"
stDocName = "RF_specialbldchem"
End Select
End Select
but when i preview BLD CHEM, a message "microsoft can't find the field
'TabCt15'referred to in your expression". How can i fix this problem?
thanks!