TheDoubleB
Programmer
I have a secure DB that has code to delete and then recreate a new table. When the table is recreated the owner is the current user and when another user with the same group permissions logs on, it will not let them delete and recreate this table.
Set tdf = dbs.CreateTableDef("Pool1Employees"
Set fld1 = tdf.CreateField("RecOrder", dbLong)
fld1.Attributes = fld1.Attributes + dbAutoIncrField
Set fld2 = tdf.CreateField("SSN", dbText, 50)
tdf.Fields.Append fld1
tdf.Fields.Append fld2
dbs.TableDefs.Append tdf
dbs.TableDefs.Refresh
DoCmd.RunSQL "INSERT INTO Pool1Employees...
I need to add a group permission to the table when I create it so that ownership is not exclusive to the user who created it, but to a group.
Set tdf = dbs.CreateTableDef("Pool1Employees"
Set fld1 = tdf.CreateField("RecOrder", dbLong)
fld1.Attributes = fld1.Attributes + dbAutoIncrField
Set fld2 = tdf.CreateField("SSN", dbText, 50)
tdf.Fields.Append fld1
tdf.Fields.Append fld2
dbs.TableDefs.Append tdf
dbs.TableDefs.Refresh
DoCmd.RunSQL "INSERT INTO Pool1Employees...
I need to add a group permission to the table when I create it so that ownership is not exclusive to the user who created it, but to a group.