En fait voila, j'importe un fichier texte depuis l'exterieur, ensuite je rajoute Deux colonnes a cette table.
Le Code se situe apres:
' Return reference to current database.
Set dbs = CurrentDb
' Reference to the New DataBase
Set tdf = dbs.TableDefs(name)
Set fld1 = tdf.CreateField("ID", dbLong)
fld1.Attributes = fld1.Attributes + dbAutoIncrField
Set fld2 = tdf.CreateField("Normal", dbBoolean)
' Append fields.
tdf.Fields.Append fld1
tdf.Fields.Append fld2
' Create primary key index.
Set idx = tdf.CreateIndex("PrimaryKey")
Set fldIndex = idx.CreateField("ID", dbLong)
' Append index fields.
idx.Fields.Append fldIndex
' Set Primary property.
idx.Primary = True
' Append index.
tdf.Indexes.Append idx
' Append TableDef object.
dbs.TableDefs.Refresh
Set dbs = Nothing
Mon Probleme, c'est que VB me cree mon Champs Yes/No Sous la Forme -1/0 et sous la forme d'une TextBox (Je desirerais une checkBox).
Comment faire en VB pour rajouter des attributs ou formats ... (je ne sais koi en tout cas :) ) a mon code afin d'obtenir le resulat final. MERCI