B
brian
Trying to add a field to a table using DAO. I was experimenting with a
single insert and I starting getting an error that I did not have permission
to update the database. I do have the permissions set correctly...I've owned
and updated these databases a number of times, but this is the first time
I've tried to do it through DAO. Simple code...any ideas?
Dim mydb As Database
Dim myname As String
Dim mytbl As TableDef
myname = "C:\dbsti\moblesti_be.mdb"
Set mydb = OpenDatabase(myname)
Set mytbl = mydb("Customers")
With mytbl
.Fields.Append .CreateField("RelatedAccounts", dbText, 30)
End With
single insert and I starting getting an error that I did not have permission
to update the database. I do have the permissions set correctly...I've owned
and updated these databases a number of times, but this is the first time
I've tried to do it through DAO. Simple code...any ideas?
Dim mydb As Database
Dim myname As String
Dim mytbl As TableDef
myname = "C:\dbsti\moblesti_be.mdb"
Set mydb = OpenDatabase(myname)
Set mytbl = mydb("Customers")
With mytbl
.Fields.Append .CreateField("RelatedAccounts", dbText, 30)
End With