G
Guest
I have a table HYInReg which uses three forms, one for data entry, one for
data edit and one for data delete. I am also using the audit log function by
Alan Browne. By using this function I can create a log of inserts, edits and
deletions. The entry and edit forms work okay however I cannot get the
functionality of the delete form to work correctly.
I have an unbound combo box from which the user selects the record for
deletion. I then have a yes/no check box to confirm the record is the
correct one. If the check box is checked I have additional fields that
require entry.
DeleteDate - bound text box to table HYInReg
DeptReqDel - combo box using a table DeptCode as source
PersonReqDel - bound text box to table HYInReg
ReasonforDel - bound text box to table HYInReg
I then have various command buttons for canceling entry, printing and
returning to switchboard.
My problems are that if I make the form data entry NO I can use the combo
box to select the required record which then populates the fields with
information already in table to ensure it is the correct records however; the
fields that then require additional data entry will not use their default
properties eg. current date and user ID (using fOSUserName). If I set form
data entry to YES the current date and user details appear but the combo box
will not selete the records.
If all the fields are entered the additional information should then be
stored in the audit log table; but the record will be deleted from HYInReg.
Can anybody please please please explain to me where I am going wrong; I
have tried all sorts of combinations but to no avail. Your responses are
greatly appreciated I could have got this far without this service.
data edit and one for data delete. I am also using the audit log function by
Alan Browne. By using this function I can create a log of inserts, edits and
deletions. The entry and edit forms work okay however I cannot get the
functionality of the delete form to work correctly.
I have an unbound combo box from which the user selects the record for
deletion. I then have a yes/no check box to confirm the record is the
correct one. If the check box is checked I have additional fields that
require entry.
DeleteDate - bound text box to table HYInReg
DeptReqDel - combo box using a table DeptCode as source
PersonReqDel - bound text box to table HYInReg
ReasonforDel - bound text box to table HYInReg
I then have various command buttons for canceling entry, printing and
returning to switchboard.
My problems are that if I make the form data entry NO I can use the combo
box to select the required record which then populates the fields with
information already in table to ensure it is the correct records however; the
fields that then require additional data entry will not use their default
properties eg. current date and user ID (using fOSUserName). If I set form
data entry to YES the current date and user details appear but the combo box
will not selete the records.
If all the fields are entered the additional information should then be
stored in the audit log table; but the record will be deleted from HYInReg.
Can anybody please please please explain to me where I am going wrong; I
have tried all sorts of combinations but to no avail. Your responses are
greatly appreciated I could have got this far without this service.