Hi,
I've got alot of textbox fields to enable/disable according to what value a user keys in.
eg:
Me!Text1.enabled= True (previously False)
Is there a way to make the nunber component a general one like
Me!ScnXX.enabled = True/False
where XX is the number which increments till it hits the value that the user has entered.
Below is my code:
Private Sub Text103_AfterUpdate()
Dim TCount As Integer, CurCount As Integer
Dim Str1 As String
TCount = Me!Text103.Value 'gets the total count value
CurCount = 1
For CurCount = 1 To TCount
Str1 = "me!scn" & Count & ".enabled=true"
?!?how to excute this command in Str1?!?
Next CurCount
End Sub
Any help is most apprecieated. Thanks.
I've got alot of textbox fields to enable/disable according to what value a user keys in.
eg:
Me!Text1.enabled= True (previously False)
Is there a way to make the nunber component a general one like
Me!ScnXX.enabled = True/False
where XX is the number which increments till it hits the value that the user has entered.
Below is my code:
Private Sub Text103_AfterUpdate()
Dim TCount As Integer, CurCount As Integer
Dim Str1 As String
TCount = Me!Text103.Value 'gets the total count value
CurCount = 1
For CurCount = 1 To TCount
Str1 = "me!scn" & Count & ".enabled=true"
?!?how to excute this command in Str1?!?
Next CurCount
End Sub
Any help is most apprecieated. Thanks.