K
Krzysztof via AccessMonster.com
Good Day!
I am trying to set up a generic and very simple object operation to see if i
could acheive something in this fashion. i am trying to set up a 'dynamic
variable' and i am having no luck. this is what i have so far:
Dim x As Integer
Dim obj As TextBox
Dim roller As String
Do Until x = 6
x = 1
roller = "Text" + Str(x)
obj.Name = roller
obj.Text = "Test" //this will be replaced by several modules
x = x + 1
Loop
i need to know if this logic flow is acceptable, and i keep getting this
message:
"Object Variable or with block variable not set"
has anyone ever done this?
TIA
~K
I am trying to set up a generic and very simple object operation to see if i
could acheive something in this fashion. i am trying to set up a 'dynamic
variable' and i am having no luck. this is what i have so far:
Dim x As Integer
Dim obj As TextBox
Dim roller As String
Do Until x = 6
x = 1
roller = "Text" + Str(x)
obj.Name = roller
obj.Text = "Test" //this will be replaced by several modules
x = x + 1
Loop
i need to know if this logic flow is acceptable, and i keep getting this
message:
"Object Variable or with block variable not set"
has anyone ever done this?
TIA
~K