I have 2 questions which I am stuck on, can anyone help.
I am using Access 2000
1. I am using the "DoCmd.TransferText acImportFixed" to import a fixed length text file. The file imports correctly, but the name of the file changes all the time, so how do I open a search box to select the file from a directory, rather than hard code the location and is it possible in A2K?
2. I want to print out a report based on the imported data. Without going to the FILE menu, is there a way, which allows me to select which pages of the report to print, the print range?
eg. I may only want to print pages 1,2 and 23 of a 50 page report, at the moment this is possible using the FILE menu and selecting the print range, but again is this possible from within the code?
Any help is really appreciated.
I am using Access 2000
1. I am using the "DoCmd.TransferText acImportFixed" to import a fixed length text file. The file imports correctly, but the name of the file changes all the time, so how do I open a search box to select the file from a directory, rather than hard code the location and is it possible in A2K?
2. I want to print out a report based on the imported data. Without going to the FILE menu, is there a way, which allows me to select which pages of the report to print, the print range?
eg. I may only want to print pages 1,2 and 23 of a 50 page report, at the moment this is possible using the FILE menu and selecting the print range, but again is this possible from within the code?
Any help is really appreciated.