M
Mike Waters
Hello,
I have a database that has a series of fields name
loc_01 through loc_24. I can write a vb script that
checks the fields to see what is in them, and then based
on what it finds does something else. What I am trying
to do now though is to use a loop that would
automatically go through all the fields. What I had
tried was something like the following, but can't seem to
get it to work:
Do while count < 24
loc1="loc_0" +right(str(count),1) 'this was needed to
eliminate a blank space in the name
loc1.setfocus 'here is where I get the error.
I have more code then that,but this is the part I'm
having trouble with. Is it possible to get a loop to do
what I want it to do, and if so, can someone help me
figure it out. Please let me know.
Thank You,
Mike
I have a database that has a series of fields name
loc_01 through loc_24. I can write a vb script that
checks the fields to see what is in them, and then based
on what it finds does something else. What I am trying
to do now though is to use a loop that would
automatically go through all the fields. What I had
tried was something like the following, but can't seem to
get it to work:
Do while count < 24
loc1="loc_0" +right(str(count),1) 'this was needed to
eliminate a blank space in the name
loc1.setfocus 'here is where I get the error.
I have more code then that,but this is the part I'm
having trouble with. Is it possible to get a loop to do
what I want it to do, and if so, can someone help me
figure it out. Please let me know.
Thank You,
Mike