Hi All,
I have this code:
Public Function WhichForm(ByVal NofT As Integer)
Select Case NofT
Case 1 To 6
' Display the corresponding form based on NofT
Select Case NofT
Case 1
formTanker1.Show
Case 2
formTanker2.Show
Case 3
formTanker3.Show
Case 4
formTanker4.Show
Case 5
formTanker5.Show
Case 6
formTanker6.Show
End Select
End Select
End Function
It is finding the correct form however, it is saying that the formTanker# object is required, even though it does exist.
Any ideas?
I have this code:
Public Function WhichForm(ByVal NofT As Integer)
Select Case NofT
Case 1 To 6
' Display the corresponding form based on NofT
Select Case NofT
Case 1
formTanker1.Show
Case 2
formTanker2.Show
Case 3
formTanker3.Show
Case 4
formTanker4.Show
Case 5
formTanker5.Show
Case 6
formTanker6.Show
End Select
End Select
End Function
It is finding the correct form however, it is saying that the formTanker# object is required, even though it does exist.
Any ideas?