In my wizard-generated "Order Entry" database (significantly modified over the years for our application), I am working on a macro that will add a new record in the Orders form. So far, it is set to "OpenForm" where upon it opens the Orders form. At that point, I would like to use the menu item "Add record" but it doesn't appear in the list of available commands in the "RunCommand" action.
The main goal here is to add a new record in the Order Details subform within the Orders form. That record appends to the table named Order Details. Once the new record is added, it needs to have two fields filled in. The first is a selection from a look-up field in the underlying table then tab over 5 columns and add a dollar amount that shows up in a text box on the Orders form, named "Amount Due".
I've tried Opening the Orders form, GoToControl, Tab into the first subform field then try to GoToRecord > New and also RunCommand > Insert Row. Both result in an error stating that the table isn't open or the Insert Row is not available.
Any thoughts on how to get this to work? (Access 2000)
PS - The entire purpose of the macro is to print an report (customer invoice), revise the payment amount, add a new line to the order details to account for the revised payment amount and print a second report (our invoice). This is needed when an order is processed in US$ and converted (for the credit card deposit) to Cdn $.
The main goal here is to add a new record in the Order Details subform within the Orders form. That record appends to the table named Order Details. Once the new record is added, it needs to have two fields filled in. The first is a selection from a look-up field in the underlying table then tab over 5 columns and add a dollar amount that shows up in a text box on the Orders form, named "Amount Due".
I've tried Opening the Orders form, GoToControl, Tab into the first subform field then try to GoToRecord > New and also RunCommand > Insert Row. Both result in an error stating that the table isn't open or the Insert Row is not available.
Any thoughts on how to get this to work? (Access 2000)
PS - The entire purpose of the macro is to print an report (customer invoice), revise the payment amount, add a new line to the order details to account for the revised payment amount and print a second report (our invoice). This is needed when an order is processed in US$ and converted (for the credit card deposit) to Cdn $.