Hello again,
I've done more searching on the next step of my instrument data project, which involves having a text file that is generated by a spectrometer's software automatically imported into my Access database tables.
I thought there might be a way to run code in a batch file to do the import, WITHOUT having to have the Access database ever opened. After doing some reading here and on other sites, it does NOT appear to be doable.
I plan on writing a batch file that opens an Access database. When this database opens, it will have a Startup form. This Startup form will have in its OnLoad or OnOpen property the code needed to make the text file import to my database tables happen. The code will then delete the text file and then shut the Access database back down again.
I plan on referencing this batch file in my spectrometer's software, which will make the software fire the batch file up every time it fires off a results text file, which I want captured in my Access stuff.
From what I've read, this seems to be the best way to automate the process, which is necessary, since I don't want an analyst manually importing every one of the 60+ analyses we run each day on this instrument.
My question to you good folks is: Does this sound like the way to go, or is there another way to run code to automatically import a text file into MS Access database tables?
Thanks again for your help. I really learned a lot from both Wayne's posts on my first issue, and the searches I've done here. Great site!
Joe
I've done more searching on the next step of my instrument data project, which involves having a text file that is generated by a spectrometer's software automatically imported into my Access database tables.
I thought there might be a way to run code in a batch file to do the import, WITHOUT having to have the Access database ever opened. After doing some reading here and on other sites, it does NOT appear to be doable.
I plan on writing a batch file that opens an Access database. When this database opens, it will have a Startup form. This Startup form will have in its OnLoad or OnOpen property the code needed to make the text file import to my database tables happen. The code will then delete the text file and then shut the Access database back down again.
I plan on referencing this batch file in my spectrometer's software, which will make the software fire the batch file up every time it fires off a results text file, which I want captured in my Access stuff.
From what I've read, this seems to be the best way to automate the process, which is necessary, since I don't want an analyst manually importing every one of the 60+ analyses we run each day on this instrument.
My question to you good folks is: Does this sound like the way to go, or is there another way to run code to automatically import a text file into MS Access database tables?
Thanks again for your help. I really learned a lot from both Wayne's posts on my first issue, and the searches I've done here. Great site!
Joe
Last edited: