I'm sure I'm probably an idiot and this is an easy fix, but I'm having trouble figuring out how to get my DoCmd.GoToRecord function to go to a new record.
So I have a main form with two subforms.
On subform 1, it is just a product list
On subform 2, it is an item cart
I had a hard time coding my item cart to update all the products and the amounts when submitted so I wasn't able to get the cmd button "Submit Order" to be on the main form, it had to be with the record source on the item cart or else I probably wouldn't be having this issue. So I have it where the submit order button is on the item cart (subform 2). The problem I am having is when I try to do the DoCmd.GoToRecord,,acNewRec it keeps saying I have a type mismatch error. I've tried referencing my main form which is called frmOrderDetails. I've tried the setfocus on it and it is still not working. Does anyone have any ideas on how I get the main form to go to a new record from a cmd button on subform 2?
My main form is called frmOrderDetails
My subform2 is called frmItemCartOrdersSubform