Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a multi-select list

Status
Not open for further replies.

meierswa

Technical User
Nov 21, 2002
20
HK
I have created an input form that allows a user to specify the criteria for a report. Here is the current code:

Private Sub preview_Click()
On Error GoTo Err_preview_Click

Dim stDocName As String

stDocName = "rptActivityReport"
DoCmd.OpenReport stDocName, acPreview, , "PROID=" & Me.lstprocessor & _
" AND dtReceived between #" & Me.txtStartDate & "# And #" & Me.txtEndDate & "#"


Exit_preview_Click:
Exit Sub

Err_preview_Click:
MsgBox Err.Description
Resume Exit_preview_Click

End Sub

What must I do to allow multi-selecting in the processor list? Any help is appreciated.
 
How does the user specify the criteria? Thru a list box, combo box, text box, check buttons ... ? If you don't understand, just nod and smile ...
 
The dates are entered using text boxes and the processors are selected in a list box.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top