J
JamesPaulHart
Let's start with the fact that I don't know much about Access. After
that. . .
The current situation:
1) I have a Form that is displayed in DataSheet View.
2) The Form is populated from a good old-fashioned query. It has 10
columns - of which I want to protect 9 of from editing (the last one is
an editable text field).
3) I have hooked up the AfterUpdate event so that when the user gets
done editing that field, I want to update various tables based on
conditions in the other 9 (non-editable) fields via VBA.
So far so good - I've managed all the above. My problem is that
apparently The Form (that is being displayed in DataSheet View) *also*
wants to update various records. Unfortunately, it's not smart enough
to know about various scenarios the other fields create - meaning it's
not updating the right tables in the correct manner.
So essentially, I want to stop The Form from doing any updating of
records. I'll handle it by myself. However, I can't figure out how to
do it. I've gone through every property I can think of - but no luck.
For example - if I set the RecordSet type to 'Snapshot' I can't edit
the one field I need to. I also attempted to do a "Me.Dirty = False"
in the AfterUpdate event handler. Although that did get rid of the
"Write Conflict" message I was receiving, it is not preventing Access
from attempting to update the record.
Perhaps I'm missing a property. Alternatively, maybe there's an event
on the form I can hook into and intercept it's attempt to update the
records.
Anybody out there have any suggestions?
that. . .
The current situation:
1) I have a Form that is displayed in DataSheet View.
2) The Form is populated from a good old-fashioned query. It has 10
columns - of which I want to protect 9 of from editing (the last one is
an editable text field).
3) I have hooked up the AfterUpdate event so that when the user gets
done editing that field, I want to update various tables based on
conditions in the other 9 (non-editable) fields via VBA.
So far so good - I've managed all the above. My problem is that
apparently The Form (that is being displayed in DataSheet View) *also*
wants to update various records. Unfortunately, it's not smart enough
to know about various scenarios the other fields create - meaning it's
not updating the right tables in the correct manner.
So essentially, I want to stop The Form from doing any updating of
records. I'll handle it by myself. However, I can't figure out how to
do it. I've gone through every property I can think of - but no luck.
For example - if I set the RecordSet type to 'Snapshot' I can't edit
the one field I need to. I also attempted to do a "Me.Dirty = False"
in the AfterUpdate event handler. Although that did get rid of the
"Write Conflict" message I was receiving, it is not preventing Access
from attempting to update the record.
Perhaps I'm missing a property. Alternatively, maybe there's an event
on the form I can hook into and intercept it's attempt to update the
records.
Anybody out there have any suggestions?