This thread is a follow-up that relates to the system of the my last. I have a main form with project id and a subform with financial data linked to the main form by project no and p_id. The subform itself has an autonumber primary key field for each transaction. The subform also has the fields Requisition Type (e.g. Purchase Requisition, Payment Voucher....) and I also have the fields PR_No, PV_No...The latter two are set to invisible and only when the user selects a requisition type, does a particular number (eg. PR_No for purchase requisition, PV_No for payment voucher) is displayed. That works ok.
However, I need to be able to reset all controls so that the user can add a new financial record for the same project. Using the navigation bar, and/or a reset button with "DoCmd.RunCommand acCmdRecordsGoToNew" is not functioning as I want. When I click on reset all the data on the screen is cleared, but as soon as I make a selection from the requisition type, all controls reverts to the first record and data for the first record is displayed.
Hopefully, I was not too confusing. My problem is I need to reset/clear the controls on a subform so that I can add a new record. Also, I need that my visible/invisible property of the particular no fields are maintained.
However, I need to be able to reset all controls so that the user can add a new financial record for the same project. Using the navigation bar, and/or a reset button with "DoCmd.RunCommand acCmdRecordsGoToNew" is not functioning as I want. When I click on reset all the data on the screen is cleared, but as soon as I make a selection from the requisition type, all controls reverts to the first record and data for the first record is displayed.
Hopefully, I was not too confusing. My problem is I need to reset/clear the controls on a subform so that I can add a new record. Also, I need that my visible/invisible property of the particular no fields are maintained.