antonyx
Arsenal Supporter
- Local time
- Today, 21:20
- Joined
- Jan 7, 2005
- Messages
- 556
the user searches records and they are filtered..
http://www.londonheathrowcars.com/searchform.jpg
http://www.londonheathrowcars.com/searchquery.jpg
and when they double click i want the record to open in this form..
http://www.londonheathrowcars.com/showform.jpg
http://www.londonheathrowcars.com/showquery.jpg
trying to put this code on my listbox but gettin the openform cancelled 2501 error on the bold line.. anyone see why?
note:
on the search form.. the form has no record source.. the listbox has the record source of the searchquery..
also on the show form.. the form has the record source of the showquery.
http://www.londonheathrowcars.com/searchform.jpg
http://www.londonheathrowcars.com/searchquery.jpg
and when they double click i want the record to open in this form..
http://www.londonheathrowcars.com/showform.jpg
http://www.londonheathrowcars.com/showquery.jpg
trying to put this code on my listbox but gettin the openform cancelled 2501 error on the bold line.. anyone see why?
Code:
Private Sub QuickSearch_DblClick(Cancel As Integer)
Forms("searchform").SetFocus
Forms("searchform").RecordSource = vbNullString
[b]DoCmd.OpenForm "showform", , , "[jobref] = " & Me![QuickSearch].Column(0)[/b]
End Sub
note:
on the search form.. the form has no record source.. the listbox has the record source of the searchquery..
also on the show form.. the form has the record source of the showquery.