A
ar013871 via AccessMonster.com
Okay,
Here is the setup of this monster database that we're using. We have an
Access frontend with SQL server backend. We have about 14 tables that all
link to one main table via main table's PK. To present this data, we have
forms that have 14 sub-forms on them (long story, but in order to get what we
needed, this was how we got it to work). We have the SQL server residing on
one server and then six laptops connect to that server via wireless router
(again, due to the mobility of the laptops, it has to be wireless). So at
one time, there are six users entering data, but never working on the same
person at the same time. Lately we've been experiencing, what seems to be a
common error, the write conflict error where the only options are Save, Copy
to Clipboard or Drop Changes. With me so far?
Okay, so it is my understanding that as a user tabs through the form and
fills out the appropriate text boxes, check boxes, and option buttons, the
record does not save until the form is closed, correct? This is when the
record is considered "dirty," it's there but not written to SQL. In doing
some research, it looks like I need to utilize the following logic:
If Me.Dirty = True Then
Me.Dirty = False
End If
My question is where to do I put this? Do I put in in the OnExit event of
the subform? Does it go in each AfterUpdate event for each control on the
form (this would be ridiculous (there's thousands))? Does it go in the
AfterUpdate event of the main form? With this setup, I can set many places
to put it, I just need to make sure it's in the right spot so the error goes
away. Please let me know.
Thanks in advance!
Here is the setup of this monster database that we're using. We have an
Access frontend with SQL server backend. We have about 14 tables that all
link to one main table via main table's PK. To present this data, we have
forms that have 14 sub-forms on them (long story, but in order to get what we
needed, this was how we got it to work). We have the SQL server residing on
one server and then six laptops connect to that server via wireless router
(again, due to the mobility of the laptops, it has to be wireless). So at
one time, there are six users entering data, but never working on the same
person at the same time. Lately we've been experiencing, what seems to be a
common error, the write conflict error where the only options are Save, Copy
to Clipboard or Drop Changes. With me so far?
Okay, so it is my understanding that as a user tabs through the form and
fills out the appropriate text boxes, check boxes, and option buttons, the
record does not save until the form is closed, correct? This is when the
record is considered "dirty," it's there but not written to SQL. In doing
some research, it looks like I need to utilize the following logic:
If Me.Dirty = True Then
Me.Dirty = False
End If
My question is where to do I put this? Do I put in in the OnExit event of
the subform? Does it go in each AfterUpdate event for each control on the
form (this would be ridiculous (there's thousands))? Does it go in the
AfterUpdate event of the main form? With this setup, I can set many places
to put it, I just need to make sure it's in the right spot so the error goes
away. Please let me know.
Thanks in advance!