K
kev100 via AccessMonster.com
I've got an app that has a table created by Importing a FoxPro .dbf file.
Currently, I only need to occasionally "refresh" it by re-importing the same
file (the app that feeds data is in VizFoxPro and will only write to these
type files).
However, I now need to re-import it pretty often. Fortunately....it is
stored on only one place and will always have the same name.
Is it possbile to create a Macro to import this file?
If so....I could just have 1 Macro to delete the existing table and another
to import the file again into a new table (but with the exact same name of
the existing)....then have 3rd Macro that ties them all together.
Currently....to import, I do the following:
1. File / Get External Data
2. Select ODBC / Machine Data Source tab / Visual Foxpro Tables
3. Specify the Path and File name of the .dbf to be imported
4. Click OK
5. It imports the the data into a table with the SAME NAME as the source .dbf
6. I rename that imported table to something else so that all the forms /
queries / reports will work .
Any advice on creating such a query to import as above would be greatly
appreciated.
Thanks
Currently, I only need to occasionally "refresh" it by re-importing the same
file (the app that feeds data is in VizFoxPro and will only write to these
type files).
However, I now need to re-import it pretty often. Fortunately....it is
stored on only one place and will always have the same name.
Is it possbile to create a Macro to import this file?
If so....I could just have 1 Macro to delete the existing table and another
to import the file again into a new table (but with the exact same name of
the existing)....then have 3rd Macro that ties them all together.
Currently....to import, I do the following:
1. File / Get External Data
2. Select ODBC / Machine Data Source tab / Visual Foxpro Tables
3. Specify the Path and File name of the .dbf to be imported
4. Click OK
5. It imports the the data into a table with the SAME NAME as the source .dbf
6. I rename that imported table to something else so that all the forms /
queries / reports will work .
Any advice on creating such a query to import as above would be greatly
appreciated.
Thanks