I need to pass an id from a list box to a form as soon as the user double click on a record in the list box.
I've tried the following on the DblClick event:
If i place a breakpoint on the last line, the id do appear in the mouse over. But on the new form the OpenArgs value contains the field name and not the id as it appear in the breakpoint mouse over.
What am I doing wrong here?
I've tried the following on the DblClick event:
Code:
Const FN As String = "frmConversion_Factor"
DoCmd.OpenForm FN, , , , , , Me.lstConversionFactor.ItemData(1)
If i place a breakpoint on the last line, the id do appear in the mouse over. But on the new form the OpenArgs value contains the field name and not the id as it appear in the breakpoint mouse over.
What am I doing wrong here?