Hi, With Access97, I'm doing this: my job slices one master table into 13 pieces by department No and dumps them in 13 different databases, then FTP to individual dept. It does what I want it to do so far.
But I have a concern: to ensure the data accuracy in the department database, I want to set up a Audit Trail, i.e. compare the records count and total $ amount between the master table with those in 13 department databases. Currently I'm using Union query to handle this issue. However, it turns out to be a pain if the location of those 13 department databases changes. It's sort of tedious to change one by one in the union query. I want to use variables in VBA code to feed in the location and database name, etc. But Union query doesnt' work in VBA code. Any suggestions??? Thans a bunch in advance.![[sadeyes] [sadeyes] [sadeyes]](/data/assets/smilies/sadeyes.gif)
But I have a concern: to ensure the data accuracy in the department database, I want to set up a Audit Trail, i.e. compare the records count and total $ amount between the master table with those in 13 department databases. Currently I'm using Union query to handle this issue. However, it turns out to be a pain if the location of those 13 department databases changes. It's sort of tedious to change one by one in the union query. I want to use variables in VBA code to feed in the location and database name, etc. But Union query doesnt' work in VBA code. Any suggestions??? Thans a bunch in advance.
![[sadeyes] [sadeyes] [sadeyes]](/data/assets/smilies/sadeyes.gif)