C
chickenfriedsteak
Sorry to bug the list so much, I've got one last issue I can't work
out, and my brain is fried (by the time this is done, my queries will
likely be pulling over 12,000,000 records and I'm on brain drain mode
right now).
I've finally got all three combo boxes in my last post synchronized
(long story short: I'm using three combo boxes to drill down deeper
and deeper through a SQL query joining three tables, successively
going down through Server Name, then Share Name, then the individual
user - resulting in a text box populated with that user's access
rights to that share on that server). My problem now is that when I
select an entry on the last combo box (user name), and the After
Update event procedure is triggered, I get the following error:
Run-time error '2115':
The macro or function set to the BeforeUpdate or ValidationRule
property for this field is preventing Microsoft Office Access from
saving the data in the field.
There are no BeforeUpdate conditions or ValidationRule conditions set
on any of my controls, so I'm not sure why it's throwing this. Here's
the event procedure I'm doing on the final combo box After Update:
Private Sub cmbTrusteeUser_AfterUpdate()
Me.txtPermissions.SetFocus
Me.txtPermissions.Text = "SELECT Access FROM" & _
" tblSharePermissions WHERE Server_Name
= """ & _
Me.cmbServerName & _
""" AND Share_Name = """ & _
Me.cmbShareName & _
""" AND TrusteeDomain_Name = """ & _
Me.cmbTrusteeUser
End Sub
*I noted the mismatch in naming conventions between the table column
TrusteeDomain_Name and my cmbTrusteeUser, it's on my list of things to
remediate but I don't think it's causing the error.
Could this be something in the formatting of the fields in the
database tables? The field TrusteeDomain_Name has a slash in it (for
example, "MICROSOFT\BGates001", without quotes). I've tried changing
the assignment to Me.txtPermissions.Value , but then it just puts my
query statement in there.
Thanks
out, and my brain is fried (by the time this is done, my queries will
likely be pulling over 12,000,000 records and I'm on brain drain mode
right now).
I've finally got all three combo boxes in my last post synchronized
(long story short: I'm using three combo boxes to drill down deeper
and deeper through a SQL query joining three tables, successively
going down through Server Name, then Share Name, then the individual
user - resulting in a text box populated with that user's access
rights to that share on that server). My problem now is that when I
select an entry on the last combo box (user name), and the After
Update event procedure is triggered, I get the following error:
Run-time error '2115':
The macro or function set to the BeforeUpdate or ValidationRule
property for this field is preventing Microsoft Office Access from
saving the data in the field.
There are no BeforeUpdate conditions or ValidationRule conditions set
on any of my controls, so I'm not sure why it's throwing this. Here's
the event procedure I'm doing on the final combo box After Update:
Private Sub cmbTrusteeUser_AfterUpdate()
Me.txtPermissions.SetFocus
Me.txtPermissions.Text = "SELECT Access FROM" & _
" tblSharePermissions WHERE Server_Name
= """ & _
Me.cmbServerName & _
""" AND Share_Name = """ & _
Me.cmbShareName & _
""" AND TrusteeDomain_Name = """ & _
Me.cmbTrusteeUser
End Sub
*I noted the mismatch in naming conventions between the table column
TrusteeDomain_Name and my cmbTrusteeUser, it's on my list of things to
remediate but I don't think it's causing the error.
Could this be something in the formatting of the fields in the
database tables? The field TrusteeDomain_Name has a slash in it (for
example, "MICROSOFT\BGates001", without quotes). I've tried changing
the assignment to Me.txtPermissions.Value , but then it just puts my
query statement in there.
Thanks