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!

How can I add a field to a table automatically

Status
Not open for further replies.

jeep2001

Programmer
Dec 15, 2005
134
US
I have a routine where I import a file (it will be daily).
I am using TransferText, which works fine. I manually add a field (Yes/NO) that the users check off...My question is ...how can I add this field automatically ...like right after the import happens.
 
Code:
CurrentDB.Execute "ALTER TABLE myTable ADD COLUMN FieldName BIT"

[small]No! No! You're not thinking ... you're only being logical.
- Neils Bohr[/small]
 
Thank you...That looks like it will do the trick.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top