I want to open a pop-up form where the form opens up to the order id I clicked. The order_ID field is set to hyperlink and used VBA code on the click event to open the frm_NewOrders form.
The problem is when I click on an order ID it opens the new orders form but in Add mode and not to the order ID I clicked.
I tried two version of my code.
Code:
DoCmd.OpenForm "frm_NewOrders", , , "[order_id]" = Me.Order_ID
DoCmd.OpenForm "frm_NewOrders", , , "[order_id]" = Me!Order_ID
If I take out the Where condition from the event the new orders form will open up to the first record.
Any ideas?? I did do a compact and repair but no change.
Thanks!!