I can't get my head round this one today!
What's the syntax for double clicking on an item in a listbox to move to that record in the form?
Current procedure produces a syntax error
(missing operator) in query expression "[LocationID] = ' :
Private Sub List0_DblClick(Cancel As Integer)
DoCmd.OpenForm "subfrmServiceLocation", , , "[LocationID] = " & Me!List0
End Sub
The other issue is that this is a subform that is already open. I have used the OpenForm command successfully elsewhere to do this task but wonder if there is just a command to update the view with the selected record when the required item is double-clicked in the listbox?
Any help much appreciated.
John R
What's the syntax for double clicking on an item in a listbox to move to that record in the form?
Current procedure produces a syntax error
(missing operator) in query expression "[LocationID] = ' :
Private Sub List0_DblClick(Cancel As Integer)
DoCmd.OpenForm "subfrmServiceLocation", , , "[LocationID] = " & Me!List0
End Sub
The other issue is that this is a subform that is already open. I have used the OpenForm command successfully elsewhere to do this task but wonder if there is just a command to update the view with the selected record when the required item is double-clicked in the listbox?
Any help much appreciated.
John R