I have an Orders form that contains an Order Details subform in Datasheet view
One of the fields in the subform is Quantity; this has an AfterUpdate to calculate a discount and Net Total for this line item, and these also appear in the current record. Since these latter fields are calculated I'd like to move down to a new record once Quantity has been added.
I've tried Docmd.GoToRecord,,acNewRecord in the AfterUpdate but it throws up 'error 2105, can't go to specified record'. I've also tried other suggestions but without success.
It would be even better if updating an existing line item row in Order Details moved focus off it, either to the next record down or a new one.
Any guidance much appreciated.
One of the fields in the subform is Quantity; this has an AfterUpdate to calculate a discount and Net Total for this line item, and these also appear in the current record. Since these latter fields are calculated I'd like to move down to a new record once Quantity has been added.
I've tried Docmd.GoToRecord,,acNewRecord in the AfterUpdate but it throws up 'error 2105, can't go to specified record'. I've also tried other suggestions but without success.
It would be even better if updating an existing line item row in Order Details moved focus off it, either to the next record down or a new one.
Any guidance much appreciated.