M Mangore Member Joined Jan 5, 2012 Messages 17 Programming Experience Beginner Jan 7, 2012 #1 this code to create table in ms access Dim cmd As New OleDbCommand("create table mytable (a string, b number)", conn) how to create field in mytable
this code to create table in ms access Dim cmd As New OleDbCommand("create table mytable (a string, b number)", conn) how to create field in mytable
JuggaloBrotha VB.NET Forum Moderator Staff member Joined Jun 3, 2004 Messages 4,530 Location Lansing, MI; USA Programming Experience 10+ Jan 7, 2012 #2 Your post is a little confusing, are you wanting to create a new table using sql or add a new column to an existing table using sql? If you want to add a new column to an existing table, check out the Alter Table statement: ALTER TABLE Statement (Microsoft Access SQL) If you want to create a new table, check out the Create Table statement: CREATE TABLE Statement (Microsoft Access SQL) Upvote 0 Downvote
Your post is a little confusing, are you wanting to create a new table using sql or add a new column to an existing table using sql? If you want to add a new column to an existing table, check out the Alter Table statement: ALTER TABLE Statement (Microsoft Access SQL) If you want to create a new table, check out the Create Table statement: CREATE TABLE Statement (Microsoft Access SQL)
M Mangore Member Joined Jan 5, 2012 Messages 17 Programming Experience Beginner Jan 7, 2012 #3 Thank you for help!! Upvote 0 Downvote