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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding Fields to MS Access Table

Status
Not open for further replies.

sytech

Technical User
Oct 27, 2003
14
0
0
GB
Hi

I am new to Delphi and have a problem changing Table field names programmatically, checked the FAQ's etc found lots of useful info but not the answer to my problem.

I have several MSAccess tables which I need to add a column to also I need to change some existing field names, the tables are on remote stand alone machines and would be updated by sending a CD to the Site.

Any Ideas is it possible?

Thanks in anticipation.


 
one way I did this was using sql statements. use the following query to add columns to a table:

'alter table [tablename] add [colname] [coldefinition]'

then apply the query to the db you want with the params you want. should be possible through delphi's table component but i never really bothered. i like using sql more :D
 
Thanks D I will give that a try.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top