I'm trying to add a new field in a querydef with the Fields.Append method. Firstly, I tryed the follownig code:
Dim myField as Field
myQueryDef.Fields.Append myField
Then, I tryed as follows:
myQueryDef.Fields.Append "my_field_name"
None of then worked. Maybe, something is missing. maybe not. If any of you know how to do it, please, help me. I'd appreciate your help.
I also need to add this new field in a especific position within the querydef, the second position.
thanks in advance.