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

Alter table issue

Status
Not open for further replies.

cs211024

MIS
Aug 14, 2003
28
0
0
CA
Hi forks, I know that in Access design view we can alter table column design, but how to get it by using VBA code?

If in table1, the data type of [cloumn1] is Number, [cloumn2] is Currency, [cloumn3] is Date, can I write:

********************************
Dim dbs As Database
Set dbs = CurrentDb()

dbs.Execute "ALTER TABLE [table1] " _
& "COLUMN [cloumn1] Number, [cloumn2] Currency,[cloumn1] Date;"
********************************

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top