G
Guest
Hi there everyone! Using A02 on XP. Not a programmer but am discovering the
joys of VB and have worked with macros. I have a project and want to be sure
I'm going in the best direction.
We have an admin system that generates an annual file to go to each client
for census info updates. We want to 'remove' the social security numbers
before 'sending' an Excel file to each client and then 'reinsert' the ssn's
when the file returns from the client before uploading back into the admin
system.
I'm creating a DB that will import the initial system data
file(S:\RPS\Census\GP0001.txt) into a table that will be named GP0001. If
the file name is GP0002 or GP0003, the table should be named GP0002 or
GP0003. I have created a form that has all the contracts listed via a query.
I'd like to have the user select the correct contract number and when they
click the command button, the DB will go find the file named with that same
contract number and import the data into a table that will also be named with
that contract number.
I started with a macro but wonder if I can put an expression in the Table
Name and/or File Name items when using TransferText so I can use the file
name in the Table Name. Or should I put this in VB on the button click
event? Wasn't sure.
Thanks to any and all that try to help. Thanks in advance for any help or
advice!
Bonnie
joys of VB and have worked with macros. I have a project and want to be sure
I'm going in the best direction.
We have an admin system that generates an annual file to go to each client
for census info updates. We want to 'remove' the social security numbers
before 'sending' an Excel file to each client and then 'reinsert' the ssn's
when the file returns from the client before uploading back into the admin
system.
I'm creating a DB that will import the initial system data
file(S:\RPS\Census\GP0001.txt) into a table that will be named GP0001. If
the file name is GP0002 or GP0003, the table should be named GP0002 or
GP0003. I have created a form that has all the contracts listed via a query.
I'd like to have the user select the correct contract number and when they
click the command button, the DB will go find the file named with that same
contract number and import the data into a table that will also be named with
that contract number.
I started with a macro but wonder if I can put an expression in the Table
Name and/or File Name items when using TransferText so I can use the file
name in the Table Name. Or should I put this in VB on the button click
event? Wasn't sure.
Thanks to any and all that try to help. Thanks in advance for any help or
advice!
Bonnie