A
AccessVandal via AccessMonster.com
Hi Bruce,
That's what I am saying, A misunderstanding here, no offence taken,
BeforeInsert/Dirty event,
1.If there are no code in these event, when user key input data into a field
the result is Dirty = True.
2.If there is code, the user can choose the edit or insert records, if user
cancel then the result Dirty = False. If the user did not cancel, then the
result is True.
3.If there is no code, we'll probably use the BeforeUpdate event the check
the Dirty value.
What I'm saying, is that the initial result or during in the
BeforeInsert/Dirty event the Dirty is False. It is only after the event that
you need to evaluated the result of "Dirty".
So, what's the point of disable/enable the controls when use have user level
security? As accord to OP, how are you going to control security with such
event?
I thought I had described it in some detail. I have not found a situation
in which the Dirty property is true during the Before Insert or Dirty event.
Can you describe such a situation? Not meaning to sound like I'm issuing a
challenge here, but you seem to be siuggesting that with a different form
design the Dirty property would be True for the Before Insert or Dirty
events
That's what I am saying, A misunderstanding here, no offence taken,
BeforeInsert/Dirty event,
1.If there are no code in these event, when user key input data into a field
the result is Dirty = True.
2.If there is code, the user can choose the edit or insert records, if user
cancel then the result Dirty = False. If the user did not cancel, then the
result is True.
3.If there is no code, we'll probably use the BeforeUpdate event the check
the Dirty value.
What I'm saying, is that the initial result or during in the
BeforeInsert/Dirty event the Dirty is False. It is only after the event that
you need to evaluated the result of "Dirty".
As I understand, the OP was talking about enabling the controls when a user
starts typing into a record. I can sort of understand why that approach
might be taken for a new record, but it is harder to see why it would happen
for an existing record. In any case I did not take the question to be about
different permissions for different users. Having said that, I agree that
if there are security issues the Open event is a good place to hide or
disable controls. With User Level Security in place that is how I approach
it so I do not have to design different FEs for different users.
So, what's the point of disable/enable the controls when use have user level
security? As accord to OP, how are you going to control security with such
event?