G
Guest
I have a table that has 100 fields in it, named Field1, Field2, thru
Field100. I wish to write a loop to work with each field as opposed to
writing the same logic 100 times. Is there a way to do this? I am not much
luck. Here is a simple code snipet to just prove the logic via printing out
the content of each field in a MsgBox.
‘ * * * * * * start of Snipet example
Dim intField as Integer, strName as String
intField = 1
Do while intField < 100
strName = “Field†& CStr(intField)
Msgbox “Value of current field = “ & rcdTable!strName
intField = intField + 1
Loop
‘ * * * * * * end of logic
Thanks in advance for your help. I’ve been stuck on this all days…
Mike p.
Field100. I wish to write a loop to work with each field as opposed to
writing the same logic 100 times. Is there a way to do this? I am not much
luck. Here is a simple code snipet to just prove the logic via printing out
the content of each field in a MsgBox.
‘ * * * * * * start of Snipet example
Dim intField as Integer, strName as String
intField = 1
Do while intField < 100
strName = “Field†& CStr(intField)
Msgbox “Value of current field = “ & rcdTable!strName
intField = intField + 1
Loop
‘ * * * * * * end of logic
Thanks in advance for your help. I’ve been stuck on this all days…
Mike p.