I will search for [CUST_NUM] on frmCustomers. When I find the customer, I click a button btnShowOrders and it opens frmOrders with subfrmOrderDeta ils2. (I'm having trouble grasping the previous sentence myself, so here's the paraphrase: I open a form for a customer, click SHOW ORDER button, and the order form opens showing order details.) In frmOrders, the [CUST_NUM] is automagically filled in since I used the button to open it. Additionally, an [ORDER_NUM] is filled in automatically by adding 1 to the previous max [ORDER_NUM].
Our customers order 4 times each year, and 90% of the time they have the exact same order. What I desire is to have the subfrmOrderDeta ils2 roll over the default value from the previous order *for that customer*. Note that is not the previous record. It would be the previous max [ORDER_NUM] pertaining to that particular [CUST_NUM].
It's probably worth noting that an [ORDER_NUM] and [CUST_NUM] are required before one enters data in the subform (Referential integrity) but both of these are supplied when one opens the form by the button. However, the form has be to dirty (I think I'm using correct terminology) before one can enter anything into the subfrmOrderDeta ils2. I don't really want the form to have to be dirty...I thought with those two controls filled in it was dirty enough. I'm not sure if that makes a difference in the solution, but wanted to mention it just in case.
Our customers order 4 times each year, and 90% of the time they have the exact same order. What I desire is to have the subfrmOrderDeta ils2 roll over the default value from the previous order *for that customer*. Note that is not the previous record. It would be the previous max [ORDER_NUM] pertaining to that particular [CUST_NUM].
It's probably worth noting that an [ORDER_NUM] and [CUST_NUM] are required before one enters data in the subform (Referential integrity) but both of these are supplied when one opens the form by the button. However, the form has be to dirty (I think I'm using correct terminology) before one can enter anything into the subfrmOrderDeta ils2. I don't really want the form to have to be dirty...I thought with those two controls filled in it was dirty enough. I'm not sure if that makes a difference in the solution, but wanted to mention it just in case.
Comment