The main table which we are using to exclude the special cases contains 1.3 mil rows, then we are joining to text file(s) containing at least 100k rows. A bit more background, we are trying to fill in gaps in the 1.3 mil row table (historical data - so an id could have up to 10 rows) from the text files so this table will get larger. The query/ies do the following, join the two tables to get those records that match (they are matching on a different code since the text files don't have the id_code, then exclude those records that have data for a specific year and exclude the records that have the alphas and their counterparts that don't have the alphas (these will have to be addressed manually at this point). We have to match against 10 text files (one for each year), due to how the text files were created, the field names are customized so will probably need to use vba to standardize the field names and loop through each year table one at a time.
The sql I used was from you (vbaInet) as I wasn't able to get the sql from CJ_London to work. Probably if I spend a bit more time with it to overcome the syntax errors when customized for our tables it will work, but since your query ran without syntax errors, went with that one.
The sql I used was from you (vbaInet) as I wasn't able to get the sql from CJ_London to work. Probably if I spend a bit more time with it to overcome the syntax errors when customized for our tables it will work, but since your query ran without syntax errors, went with that one.