-----Original Message-----
Ma,
Please post back with details of the .bat file and also the macro.
On the face of it, I can see no reason why a Quit macro action would
not close Access from a database opened by a .bat command.
- Steve Schapel, Microsoft Access MVP
.
This is the 1509import.bat file I am running:
CD\
CD "g:\access"
COPY /y 1509Head.txt+G:\ELTDATA\1509tag.txt
G:\ACCESs\1509Data.txt
"C:\Program Files\Microsoft Office\Office10
\MSACCESS.EXE" "g:\access\1509.mdb" /x Import
This is my Import macro within 1509.mdb:
SetWarnings - No
Run SQL - delete * from data
Transfer Text - Import Delimited
Import Specification
g:\access\1509data.txt
yes
Close - yes
quit - exit
Thanks,
MA