Option Compare Database
Sub ugur()
Dim db As Database
Dim tbl As TableDef
Dim alan1 As Field
Dim alan2 As Field
Set db = CurrentDb()
Set tbl = db.CreateTableDef("Bilgi")
Set alan1 = tbl.CreateField("ad", dbText, 20)
Set alan2 = tbl.CreateField("soyadı", dbText, 20)
tbl.Fields.Append alan1
tbl.Fields.Append alan2
db.TableDefs.Append tbl
End Sub
Yorumlar
Yorum Gönder