Hi,
I have the following code, but it is giving me an error (as shown below). How can I set the doc.FIELDNAME?
fields = “Number,FirstName,LastName,Title,Position”
fieldList = Split(fields,“,”)
x=1
Do
res.NextRow
Set doc = db.CreateDocument
doc.Form = "DemoForm"
For j = 0 To Ubound(fieldList)
doc.fieldList(j) = res.GetValue(x) ** ERROR: Illegal use of property **
x = x + 1
Next
Call doc.Save(True,True)
Loop Until res.IsEndOfData