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

Exporting specific fields from tables

P: n/a

Hi,

I know how to export whole tables as follows...

<elsnipo>

'Export This Table

strTable = "tblthis"
strSql = "SELECT " & strTable & ".* INTO " & strTable & " IN """ &
conFile & """ FROM " & strTable & ";"
dbLocal.Execute strSql, dbFailOnError
strMsg = strMsg & dbLocal.RecordsAffected & " " & strTable & "
record(s)" & vbCrLf

'Export That Table

strTable = "tblthat"
strSql = "SELECT " & strTable & ".* INTO " & strTable & " IN """ &
conFile & """ FROM " & strTable & ";"
dbLocal.Execute strSql, dbFailOnError
strMsg = strMsg & dbLocal.RecordsAffected & " " & strTable & "
record(s)" & vbCrLf

</elsnipo>

....but I would like to know how to export specific fields from each
table, not just the whole table ?

Has anyone had any experience with doing that kind of thing?

EMBC
Feb 2 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.