I have a listbox in a form that I populate with search results. This listbox has a total of 3 columns. I would like to be able to double click a result in that listbox and edit the record using another form that will populate 4 textboxes (I do mean 4, the master record list has 4 columns) with the data from the record selected. I have the edit record form ready I just can't seem to link them together.
I found this basic code online and have tried other stuff but I just keep getting this error.
Here is my event procedure code:
Code:
Private Sub List0_DblClick(Cancel As Integer)
DoCmd.OpenForm "EditRecordForm", , , "[Device ID]=" & Me.List0.Column(0)
End Sub
Device ID is the column heading.
List0 is the listbox I am trying to pull from.
Any ideas?