this what i had and worked:
Me.lblNone1.visible = false '... to lblname10
Me.reqPref1.Caption = "" '... to reqPref10
Me.ComboReq1 ="" '... to ComboReq10
and so forth...
This is what i thought I should change to:
Dim i As Integer
For i = 1 To 10
Me("lblNone" + i).Visible = False
Me("reqPref" + i).Caption = ""
Me("relPref" + i).Caption = ""
Me("ComboReq" + i) = ""
Me("ComboRel" + i) = ""
i = i + 1
Next
My error: Error 13, Type Mismatch
I tried switching (Me) lines within the For loop around and no matter what (Me) line first that is the one that causes error. I know I must be overlooking something simple, but i need another set of eyes.
As always, any help, thought, suggestion is appreciated MMFL-
Mavericks Fan For Life
Me.lblNone1.visible = false '... to lblname10
Me.reqPref1.Caption = "" '... to reqPref10
Me.ComboReq1 ="" '... to ComboReq10
and so forth...
This is what i thought I should change to:
Dim i As Integer
For i = 1 To 10
Me("lblNone" + i).Visible = False
Me("reqPref" + i).Caption = ""
Me("relPref" + i).Caption = ""
Me("ComboReq" + i) = ""
Me("ComboRel" + i) = ""
i = i + 1
Next
My error: Error 13, Type Mismatch
I tried switching (Me) lines within the For loop around and no matter what (Me) line first that is the one that causes error. I know I must be overlooking something simple, but i need another set of eyes.
As always, any help, thought, suggestion is appreciated MMFL-
Mavericks Fan For Life