Ok, I hope I can explain this one well enough!
I have tables that contain similar data but are not all uniform; I use queries to create uniform data sets (same field names, formatting, etc.). I have a process that needs to update records in the original table. However, I cannot simply refer to a field name to update, as it can vary amongst the tables. My idea is to take a piece of data (in my example, an aircraft tail number, assigned to string variable tBadTailNumber) , search the whole original table for it (tSource), and then get the field name of the record. I can then in turn assign the field name to a variable (tGetTailNumber Field) to put in my Update code. Do any of you know how I would write this/ is this even a good idea?
I don't know much about searching, but I'd like to be able to use a wildcard for the field name, but that didn't work for me:
I have tables that contain similar data but are not all uniform; I use queries to create uniform data sets (same field names, formatting, etc.). I have a process that needs to update records in the original table. However, I cannot simply refer to a field name to update, as it can vary amongst the tables. My idea is to take a piece of data (in my example, an aircraft tail number, assigned to string variable tBadTailNumber) , search the whole original table for it (tSource), and then get the field name of the record. I can then in turn assign the field name to a variable (tGetTailNumber Field) to put in my Update code. Do any of you know how I would write this/ is this even a good idea?
I don't know much about searching, but I'd like to be able to use a wildcard for the field name, but that didn't work for me:
Code:
rs.FindFirst "'*' = 'N123AB'"
Comment