I have a table containing fields Sales1 through Sales12
Using a For-Next loop I want to address the fields sequentially and have established a routine which, on each pass through, sets the contents of a variable at Sales1, Sales2 etc. The variable is called cField
Problem is, how do I address the database field using the contents of cField rather than the literal string cField?
For example, if I use rcdCustomers![cField] the program will look for a field called cField rather than Sales1.
Using a For-Next loop I want to address the fields sequentially and have established a routine which, on each pass through, sets the contents of a variable at Sales1, Sales2 etc. The variable is called cField
Problem is, how do I address the database field using the contents of cField rather than the literal string cField?
For example, if I use rcdCustomers![cField] the program will look for a field called cField rather than Sales1.