dim i as integer
'i = where you want to put your column
'if you want to put it in front you choose 0
'if you want it to the back of table: dbgDB.columns.count
dbgDB.Columns.Add (i)
dbgDB.Columns(i).Caption = "aha"
I have a dbgrid(dbgDB) and a command button(cmdANC) and a text box(txtCN)
For each time i click on the cmdbutton, i wish for a new column to be made with the name from the txtCN to appear.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.