Hello.
Within our customer record (frmCustomers) we have a tab which details all proposals. These are contained in a subform (continuous form frmproposals).
Each proposal can have a number of sales payments against it. Therefore there is a separate form (frmSales) which has been set up to open from the frmproposasl. Again frmSales is a continuous form. They are linked by ProposalID.
The two issues I have not be able to resolve are:
1. When to button on the frmproposals is clicked to open frmSales, the records in frmproposal are not saved. I have used the standard open command On Click, and added:
DoCmd.RunCommand acCmdSaveRecord
DoCmd.Minimize
The latter is to minimise the frmCustomers.
If I do a manual save (Ctrt +S) it works fine. I just want to force the save but my code is not working.
2. When the frmSales is opened it is not selecting the ProposalID from frmproposal it is linked to and mimimised. It adds +1 to the ProposalID.
I have placed the ProposalID on this form and made the defalt value =[Forms]![frmCustomers]![frmProposals].[Form]![PropAutoID]
What happens is that for each record added in frmSales, a new record in frmproposals is added with blank data apart from a new ProposalID!
Your guidance would be appreciated.
Thanks & regards,
Paul
Within our customer record (frmCustomers) we have a tab which details all proposals. These are contained in a subform (continuous form frmproposals).
Each proposal can have a number of sales payments against it. Therefore there is a separate form (frmSales) which has been set up to open from the frmproposasl. Again frmSales is a continuous form. They are linked by ProposalID.
The two issues I have not be able to resolve are:
1. When to button on the frmproposals is clicked to open frmSales, the records in frmproposal are not saved. I have used the standard open command On Click, and added:
DoCmd.RunCommand acCmdSaveRecord
DoCmd.Minimize
The latter is to minimise the frmCustomers.
If I do a manual save (Ctrt +S) it works fine. I just want to force the save but my code is not working.
2. When the frmSales is opened it is not selecting the ProposalID from frmproposal it is linked to and mimimised. It adds +1 to the ProposalID.
I have placed the ProposalID on this form and made the defalt value =[Forms]![frmCustomers]![frmProposals].[Form]![PropAutoID]
What happens is that for each record added in frmSales, a new record in frmproposals is added with blank data apart from a new ProposalID!
Your guidance would be appreciated.
Thanks & regards,
Paul