davesmith202
Employee of Access World
- Local time
- Today, 06:34
- Joined
- Jul 20, 2001
- Messages
- 522
I use the following code to export a query to a text file:
A typical Query may have 10,000 records, but this is too many for me. Is there any way to limit the export to the first - for example - 2,000 records? Or can I limit the Query to show just the first 2,000 records?
Thanks,
Dave
Code:
strQueryToExport = Me.lstQueryList.value
DoCmd.TransferText acExportDelim, "PGN Export Specification", strQueryToExport, strFile, True
A typical Query may have 10,000 records, but this is too many for me. Is there any way to limit the export to the first - for example - 2,000 records? Or can I limit the Query to show just the first 2,000 records?
Thanks,
Dave