By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,264 Members | 1,228 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,264 IT Pros & Developers. It's quick & easy.

how to export without the ID field

P: n/a
Is there a way to use the DoCmd.TransferText to export a database to a text
file but with leaving a field out?

I need the ID field to do one sort before I export.

the spec does not let me specify which fields I can include or not, so that
is not an option.

How can I sort the field permanently, delete the ID field and then do the
export

thanks

Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Create a query that has only the fields you wish to export, and export the
query rather than the table. In a query, you can sort on a field that isn't
included in the SELECT list:

SELECT Field1, Field2, Field3
FROM MyTable
ORDER BY Id

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

"Danny" <da********@hotmail.com> wrote in message
news:O8**********************@news4.srv.hcvlny.cv. net...
Is there a way to use the DoCmd.TransferText to export a database to a text file but with leaving a field out?

I need the ID field to do one sort before I export.

the spec does not let me specify which fields I can include or not, so that is not an option.

How can I sort the field permanently, delete the ID field and then do the
export

thanks

Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.