chancer1967
Excel jockey
- Local time
- Today, 16:56
- Joined
- Mar 31, 2004
- Messages
- 28
I have a form/subform that lists outstanding invoices (frmOutstanding) for a selected customer
I want to be able to have a button on that form for writing off a balance.
Pressing the button opens a new form (frmAdjust), populated with invoice number and outstanding balance (both from frmOutstanding), a date field (entered by user, but defaulting to today) and a reason code (from a combo box linked to the reason code table)
The user can change the amount, the date and the reason and then press submit to add the data to the Adjustments table.
Thats the theory anyway
I originally tried to get a button next to each record in the subform but got nowhere, so I now have a button on the main form and have conditional formatting in the subform so it is clear which record is selected.
I have successfully created frmAdjust which has all the data I need but have the following problems:
- I am unable to edit the amount as it is bound to frmCustomerOutstanding
- I don't know how to make it create a record in the Adjustments table when a submit button is pressed. VBA?
- I want to be able to select a different record in frmCustomerOutstanding and press the adjust button again and it refresh the data in frmAdjust. The only way I know is for a macro close the form then open it again
thanks in advance!!
I want to be able to have a button on that form for writing off a balance.
Pressing the button opens a new form (frmAdjust), populated with invoice number and outstanding balance (both from frmOutstanding), a date field (entered by user, but defaulting to today) and a reason code (from a combo box linked to the reason code table)
The user can change the amount, the date and the reason and then press submit to add the data to the Adjustments table.
Thats the theory anyway
I originally tried to get a button next to each record in the subform but got nowhere, so I now have a button on the main form and have conditional formatting in the subform so it is clear which record is selected.
I have successfully created frmAdjust which has all the data I need but have the following problems:
- I am unable to edit the amount as it is bound to frmCustomerOutstanding
- I don't know how to make it create a record in the Adjustments table when a submit button is pressed. VBA?
- I want to be able to select a different record in frmCustomerOutstanding and press the adjust button again and it refresh the data in frmAdjust. The only way I know is for a macro close the form then open it again
thanks in advance!!