I am currently using the following statement from within Access VBA to print records to a file:
Print #FF, DLookup("[Column1]", "Some Table")
This part has worked. For the next step I would like to print the next records in the table, starting with the first record and ending with the last. How is this done? How do I tell Access through VBA that I want the next record? Once I understand this, I could then wrap a loop around it and extract the remaining records.
NOTE: I can not use the ".DoCmd.TransferText" because I need to add a header and trailer to this file.
Any simple example would be helpful.
Thanks.
Print #FF, DLookup("[Column1]", "Some Table")
This part has worked. For the next step I would like to print the next records in the table, starting with the first record and ending with the last. How is this done? How do I tell Access through VBA that I want the next record? Once I understand this, I could then wrap a loop around it and extract the remaining records.
NOTE: I can not use the ".DoCmd.TransferText" because I need to add a header and trailer to this file.
Any simple example would be helpful.
Thanks.