Rocky Smolin - Beach Access Software
bchacc at san.rr.com
Thu May 25 10:52:18 CDT 2006
Bryan: I use a multi-select list box of equipment in this snip in the open event of the report to create a filter which will display selected equipment in a report and set the filter this way: If Forms!frmMaintenanceSchedule!fraEquipment = 2 Then Me.Filter = "" For Each varItem In Forms!frmMaintenanceSchedule!lstEquipmentRatings.ItemsSelected If Me.Filter <> "" Then Me.Filter = Me.Filter & " OR " Me.Filter = Me.Filter & "fldEquipmentID = " & Forms!frmMaintenanceSchedule!lstEquipmentRatings.Column(0, varItem) Next varItem Me.FilterOn = True Else Me.Filter = "" Me.FilterOn = False End If where Forms!frmMaintenanceSchedule!fraEquipment is an option frame which asks All Equipment (1) or Selected Equipment(2) and column(0) of Forms!frmMaintenanceSchedule!lstEquipmentRatings, the multi-select list box, has the Autonumber ID of the equipment record. HTH Rocky Bryan Carbonnell wrote: > I need some help (with Access this time :) because my brain isnt' > working well today and I haven't really done any dev in Access for far > too long. > > Here is what I am trying to do: I need to generate a report that will > shom me what courses individuals have had. I need to be able to select > one or a varyiong number of participants and then have it show me what > courses they have had. > > What I was thinking was have a form that lists the individuals in a > multi-select listbox, and then use that as a parameter for the query > the report is based on, but I'm having a serious mind gap as to how to > get the info from the lsit box to the query. > > HELP!!! Please??!?! > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com