Click here to Skip to main content
15,891,976 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi all,

Can some one please provide me the command to add the field in table in access via VB

The column name should be taken from textbox 7
Posted

1 solution

Hello


You may get some hints from the below code:

VB
Using command As New SqlCommand("alter table [tablename] add [columnname] int")
	command.Connection = connection
	command.ExecuteNonQuery()
End Using



NB:
This only a draft, not build and executed.


Regards
Dominic Abraham
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900