What I am trying to do, is run a report with a cross tab query as the recordsource. The user selects all or an individual names from a listbox on the form. I have no problems getting all the names it is just when they choose an individual name.
This is the code that I have
strCriteria = Me.LstNames.Column(0, LstNames.ListIndex)
DoCmd.OpenReport stDocName, acPreview, , "[empname]='" & strCriteria & "'"
Thanks
Angie
This is the code that I have
strCriteria = Me.LstNames.Column(0, LstNames.ListIndex)
DoCmd.OpenReport stDocName, acPreview, , "[empname]='" & strCriteria & "'"
Thanks
Angie