Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Import/Export data by type

Status
Not open for further replies.

LeonAtRC

Programmer
Nov 25, 2002
101
US
I'm trying to export data from a table into a text file using Scripting.FileSystemObject in a VB module

I don't want to copy fields that are Identity field or Computed fields.
Code:
rs.open "SELECT * FROM SomeTable"...
buf = ""
FOR EACH fld IN rs.fields
   IF fld.type <> COMPUTED THEN
      IF fld.type <> IDENTITY THEN
         buf = buf & fld.name & vbtab
      END IF
   END IF
NEXT
FieldList = LEFT(buf, LEN(buf)-1)
Obviously my test for COMPUTED and IDENTITY won't work but can someone tell me what syntax to use for what I want to do?
Thank you.
 
what type of database is this a Jet or SqlServer?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top