H
haukalid
A have a form (frmOrderOiew) used to get an overview over orders per
customer. I'm using an unbound control to choose the customers. And in a
subform on the same form the orders are listed in datasheet-view when a
customer is selected. I would like to be able to doubleclick on an order in
the subform and have this one opened up in another form (frmSingleOrder) with
all the details for this order.
I've made an OnDoubleClick event on the Subfrom:
DoCmd.OpenForm "frmSingleOrder",,,"[orderID]" = "
&Forms![frmSingleOrder]![orderID]"
But I'm getting an errormessage "Run-time error '3008'" Saying that an table
named "Diagnosis" is open...and so on...
Should there be done anything with the recordset? I can't figure out how to
get on with this one.
Mvh Rolf
customer. I'm using an unbound control to choose the customers. And in a
subform on the same form the orders are listed in datasheet-view when a
customer is selected. I would like to be able to doubleclick on an order in
the subform and have this one opened up in another form (frmSingleOrder) with
all the details for this order.
I've made an OnDoubleClick event on the Subfrom:
DoCmd.OpenForm "frmSingleOrder",,,"[orderID]" = "
&Forms![frmSingleOrder]![orderID]"
But I'm getting an errormessage "Run-time error '3008'" Saying that an table
named "Diagnosis" is open...and so on...
Should there be done anything with the recordset? I can't figure out how to
get on with this one.
Mvh Rolf