Using A97, I've created a user-defined type that contains the informations from a medical information form. The type has information for about 50 questions and looks a bit like this:
Public Type MedicalQ
intYN1 As Integer
str1 As String
intYN2 As Integer
str2 As String
...
intYN7 As Integer
str7 As String
strDate7 As String
strDetails7 As String
...
End Type
The type works fine but I need to reference some of the fields in loops with variable. Lets say I have Dim myMedical As MedicalQ. I want to be able to reference somethig like myMedical.(<a string variable equal to str7>) = "Last june I had my prostate checked!"
Public Type MedicalQ
intYN1 As Integer
str1 As String
intYN2 As Integer
str2 As String
...
intYN7 As Integer
str7 As String
strDate7 As String
strDetails7 As String
...
End Type
The type works fine but I need to reference some of the fields in loops with variable. Lets say I have Dim myMedical As MedicalQ. I want to be able to reference somethig like myMedical.(<a string variable equal to str7>) = "Last june I had my prostate checked!"