Hi guys, hope you can help
I have a multicolumn list box (lstsundry) which when I double click an entry is supposed to bring up a form (Add Sundry) with the selected records details in it, however it is only bringing up the form ready for a new entry.
The form is bound to the table where the records are, the listbox is unbound.
On properties data entry is set to No. I am using the below code:
I have a multicolumn list box (lstsundry) which when I double click an entry is supposed to bring up a form (Add Sundry) with the selected records details in it, however it is only bringing up the form ready for a new entry.
The form is bound to the table where the records are, the listbox is unbound.
On properties data entry is set to No. I am using the below code:
Code:
DoCmd.OpenForm "Add Sundry", , , [ID] = "lstsundry.ID =" & Me.lstsundry.Column(0), acFormEdit