I have a list box set up in a form. I want to be able to double click an item in the list box and have it open a seperate form with the corresponding record. Here is what I have.
The problem is it pulls the VPSID from the first record and not the record being selected. IE
If I select 321 it pulls up the record for 123...
Code:
Private Sub List0_DblClick(Cancel As Integer)
DoCmd.OpenForm "MD_ActView", , , "" & Me![VPSID] & " = [ID]"
End Sub
Code:
vpsid name somethingelse
123 dude goes places
321 himom stays home
If I select 321 it pulls up the record for 123...