I have a form and a two subforms within it. The subforms are the problem. I'm having a problem finding out why the field in the Reports table gets set to zero when a new Status report is added. The sub forms in question are called frmStatusReport and frmProject_sbfrmProjectStatus. The main form is frmProject.
The ideas is this:
When you open frmProject you see the sub forms frmStatusReport and frmProject_sbfrmProjectStatus.
There are three buttons to choose from. If you add a Status Report the report number gets set to zero. The Edit and Delete routines in the Edit and Delete buttons look for the ReportNo field in the Report table to be <> 0 which of course it is not. So you cannot edit or delete and reports that you enter.
Can anyone tell me what is hasppening and where the error in the code is? Im attaching sample FE and BE DB's.
The ideas is this:
When you open frmProject you see the sub forms frmStatusReport and frmProject_sbfrmProjectStatus.
There are three buttons to choose from. If you add a Status Report the report number gets set to zero. The Edit and Delete routines in the Edit and Delete buttons look for the ReportNo field in the Report table to be <> 0 which of course it is not. So you cannot edit or delete and reports that you enter.
Can anyone tell me what is hasppening and where the error in the code is? Im attaching sample FE and BE DB's.