I
ILCSP
Hello, I have this textbox in a Access 2000 form, which is a memo type
where we keep our notes for a record. Whenever there's new notes to
add, they're piggied back to the existing notes. (new notes are
entered at the end of the last notes).
Lately, some of the existing notes have been deleted and I would like
to know if I could check if the notes have been cleared or replaced
with new ones before updating the record. I'm thinking of having 2
boxes, BoxA and BoxB. Both would start the same when the record's
loaded. However, BoxA would be visible and that's where the users would
make changes. BoxB would be invisible and for checking purposes only.
First, whenever a record needs to be updated, I would like to check if
the notes have been deleted altogether. That's easy to do:
if not isnull(BoxB) and is null(BoxA) then sound the alarm.
The problem would arise when someone clears the notes and puts new
ones. Then, both boxes are not null. Is there a way to check if the
value from boxB still exists in BoxA at the beggining of the BoxA's
value?
This should work like this. If someone add new notes to the existing
notes, then the BoxB value would be equal to the value of BoxA plus any
new notes. If they're not, I'd offer the user the chance to reset the
record, or let them go ahead with these changes if they really need to.
If anybody has comments on how to do this, please let me know.
A million thanks beforehand.
where we keep our notes for a record. Whenever there's new notes to
add, they're piggied back to the existing notes. (new notes are
entered at the end of the last notes).
Lately, some of the existing notes have been deleted and I would like
to know if I could check if the notes have been cleared or replaced
with new ones before updating the record. I'm thinking of having 2
boxes, BoxA and BoxB. Both would start the same when the record's
loaded. However, BoxA would be visible and that's where the users would
make changes. BoxB would be invisible and for checking purposes only.
First, whenever a record needs to be updated, I would like to check if
the notes have been deleted altogether. That's easy to do:
if not isnull(BoxB) and is null(BoxA) then sound the alarm.
The problem would arise when someone clears the notes and puts new
ones. Then, both boxes are not null. Is there a way to check if the
value from boxB still exists in BoxA at the beggining of the BoxA's
value?
This should work like this. If someone add new notes to the existing
notes, then the BoxB value would be equal to the value of BoxA plus any
new notes. If they're not, I'd offer the user the chance to reset the
record, or let them go ahead with these changes if they really need to.
If anybody has comments on how to do this, please let me know.
A million thanks beforehand.