Little_Man22
Registered User.
- Local time
- Today, 21:29
- Joined
- Jun 23, 2001
- Messages
- 118
I'm looking to create a loop for a bunch of fields that require the same code. Here is an example of the code that I continually have to write:
Case "Cigarettes"
Select Case strFieldValue
Case "-1"
.FDFSetValue "Cigarettes", "X", False
Case Else
.FDFSetValue "Cigarettes", " ", False
End Select
Case "Pipe"
Select Case strFieldValue
Case "-1"
.FDFSetValue "Pipe", "X", False
Case Else
.FDFSetValue "Pipe", " ", False
End Select
So what I need is code for a loop that would ecompass these fields and the many others that I have which follow their same format.
Thanks in advance,
Ryan.
Case "Cigarettes"
Select Case strFieldValue
Case "-1"
.FDFSetValue "Cigarettes", "X", False
Case Else
.FDFSetValue "Cigarettes", " ", False
End Select
Case "Pipe"
Select Case strFieldValue
Case "-1"
.FDFSetValue "Pipe", "X", False
Case Else
.FDFSetValue "Pipe", " ", False
End Select
So what I need is code for a loop that would ecompass these fields and the many others that I have which follow their same format.
Thanks in advance,
Ryan.