[Migrated content. Thread originally posted on 25 May 2012]
Hi,I’m trying to create a delimited text file using only selected fields from a database. The problem I have is that the fields I need to extract from the database and the fields in the file that I want to move them to can change. So for example, I may want to move DATABASE-FIELD-1 to TEMP-FIELD-1 but I don’t know that the content (or value) of DATABASE-FIELD-1 is DATE-OF-BIRTH, nor do I know that the content (or value) of TEMP-FIELD-1 is TEMP-DATE-FIELD-1.
Is there a quicker way of finding out what the fields are without using IF statements to determine what each of the fields are? In other words, can I use the contents of a variable as a variable?
Any help would be very much appreciated.