I have a series of fields that have “01” through “10” appended at the end of the field names ie: “DefaultKeyword01”, “DefaultKeyword02”, “DefaultKeyword03” and so on. What I am trying to do is append the 01 and 02 to the name DefaultKeyword so I can cycle through the fields and process them. Any sugestions?
Here is a snippet of my code:
x = 0
Do Until x = 1
'set value of x and convert to string to get proper keyword field name
x=x+1
If x <10 Then
fieldNbr$ = “0” + Cstr(x)
Else
fieldNbr$ = Cstr(x)
End If
doc.DefaultKeyword+fieldNbr$ = profDoc.DefaultKeyword+fieldNbr$
Call FillinDefaults(doc,“DefaultKeyword”,fieldNbr$, “CustomFieldText”) 'this sub fills in user interface field
Loop
Mike