To modify table through code SQL

F

Frank Dulk

I need to create some fields in a table in BackEnd and I am using the
instruction Alter Table in the following way:

Dim db As Database, rs As Recordset, SQL As String
Set db = DBEngine(0).OpenDatabase(varPath)
SQL = "ALTER TABLE TBL_PRODUTO ADD COLUMN [NOVO_CAMPO] double"
db.Execute (SQL)

Where: varPath is the váriável that stores the road of BackEnd.

asks how I can implement the instruction to determine the Format = Pattern,
Decimal Houses = 2, standard value = 0 and Description of the Field = " My
text ".

I am only falling back upon the Forum because I don't still know what it
happened with my Help, it doesn't simply show anything about the
instructions Alter Table, Creat Tabe, etc...
I already reinstalled Office and anything. If somebody also knows it
happened with my Help I will be thankful for an answer.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top