G
George
Hi all,
I created a custom user group, CustomGroup, in XP and
assigned the following permission to this group:
Tables: New Tables/Queries: Read/modify Design,
Administer, Read/update/delete/insert Data.
Talbes: Table1: Read/modify Design, Administer,
Read/update/delete/insert Data.
For all other tables, this group only has Read Design and
Read/update/delete/insert Data permission. This is because
I have code that automatically create a new table Table1
Set tdfNew = CurrentDb().CreateTableDef(Table1)
' Create and append new Field objects for the new
' TableDef object.
With tdfNew
' The CreateField method will set a default Size
' for a new Field object if one is not specified.
.Fields.Append .CreateField("Vendor Number",
dbInteger)
.Fields.Append .CreateField("Vendor Name", dbText)
.Fields.Append .CreateField("Available_PV",
dbBoolean)
End With
CurrentDb().TableDefs.Append tdfNew
However, if I log in as a user in this CustomGroup group
and run the above code, I always receive error 3111 "Could
not create; no modify design permission for table or query
Table1." on the last statement. If I attempt to create a
table manually, I receive the same error when saving the
new table.
Can anyone shed some light on why this is happening and
how to fix it?
TIA.
I created a custom user group, CustomGroup, in XP and
assigned the following permission to this group:
Tables: New Tables/Queries: Read/modify Design,
Administer, Read/update/delete/insert Data.
Talbes: Table1: Read/modify Design, Administer,
Read/update/delete/insert Data.
For all other tables, this group only has Read Design and
Read/update/delete/insert Data permission. This is because
I have code that automatically create a new table Table1
Set tdfNew = CurrentDb().CreateTableDef(Table1)
' Create and append new Field objects for the new
' TableDef object.
With tdfNew
' The CreateField method will set a default Size
' for a new Field object if one is not specified.
.Fields.Append .CreateField("Vendor Number",
dbInteger)
.Fields.Append .CreateField("Vendor Name", dbText)
.Fields.Append .CreateField("Available_PV",
dbBoolean)
End With
CurrentDb().TableDefs.Append tdfNew
However, if I log in as a user in this CustomGroup group
and run the above code, I always receive error 3111 "Could
not create; no modify design permission for table or query
Table1." on the last statement. If I attempt to create a
table manually, I receive the same error when saving the
new table.
Can anyone shed some light on why this is happening and
how to fix it?
TIA.