Aug 5, 2003 #1 Ajwebb MIS Jul 31, 2003 153 0 0 GB How do you make a list box take you to a record? TIA
Aug 5, 2003 #2 chaufschild MIS Jul 15, 2002 17 0 0 US Do you mean if you click on an item in a listbox it will open a form with that record displayed? Chris Haufschild chaufschild@hotmail.com Upvote 0 Downvote
Do you mean if you click on an item in a listbox it will open a form with that record displayed? Chris Haufschild chaufschild@hotmail.com
Aug 5, 2003 #3 markgrizzle Programmer Aug 3, 2003 288 0 0 US The simplest thing is to filter the form's underlying recordsource by the selected value in the listbox. Me.RecordSource = "Select * from tblReports where ReportID = " & Me.lstReports & ";" You'll need to enter the correct values for your bound column and listbox. Mark Upvote 0 Downvote
The simplest thing is to filter the form's underlying recordsource by the selected value in the listbox. Me.RecordSource = "Select * from tblReports where ReportID = " & Me.lstReports & ";" You'll need to enter the correct values for your bound column and listbox. Mark
Aug 5, 2003 #4 markgrizzle Programmer Aug 3, 2003 288 0 0 US The simplest thing is to filter the form's underlying recordsource by the selected value in the listbox. In the listbox AfterUpdate event, enter the following (error handlers, etc. removed for clarity) Me.RecordSource = "Select * from tblReports where ReportID = " & Me.lstReports & ";" You'll need to enter the correct values for your bound column and listbox. Mark Upvote 0 Downvote
The simplest thing is to filter the form's underlying recordsource by the selected value in the listbox. In the listbox AfterUpdate event, enter the following (error handlers, etc. removed for clarity) Me.RecordSource = "Select * from tblReports where ReportID = " & Me.lstReports & ";" You'll need to enter the correct values for your bound column and listbox. Mark