Hi
For a parsing routine with more than 100 fields, I'm looking a way to get values out of Fields by determining the Fieldname on the fly.
As a simple example :
Let's assume the following
FieldABC = 123
FieldDEF = "sometext"
FieldXYZ = 987
What I would like to do
Somehow the second part of the FieldName is determined :
FieldNamePart2 = "DEF"
Then the value of that Field is used
TargetField = content "Field" & FieldNamePart2
TargetField contains "sometext", the value of FieldDEF
I would like to know too the same from databasefields
TargetField = content [tablename].["Field" & FieldNamePart2]
Is something like this achievable in VBA ?
Thx
For a parsing routine with more than 100 fields, I'm looking a way to get values out of Fields by determining the Fieldname on the fly.
As a simple example :
Let's assume the following
FieldABC = 123
FieldDEF = "sometext"
FieldXYZ = 987
What I would like to do
Somehow the second part of the FieldName is determined :
FieldNamePart2 = "DEF"
Then the value of that Field is used
TargetField = content "Field" & FieldNamePart2
TargetField contains "sometext", the value of FieldDEF
I would like to know too the same from databasefields
TargetField = content [tablename].["Field" & FieldNamePart2]
Is something like this achievable in VBA ?
Thx
Comment