G
Guest
Hi!
I have one form with a list box that show us some fields of the records
selected through comboboxes in same form.
With a command button, in same form too, open a report with all the fields
of the selected records in listbox.
But when report open, appear all records of query that it gives support to
the listbox.
It would like to be able to print only records showed in listbox.
In command button to print, I have a next code:
Dim strFilter As String
DoCmd.OpenReport "R_1", acPreview, , strFilter
strFilter = "NAI = Forms!F_MultiField!ListBox!NAI"
(Where NAI is one number to edentify each record).
Thanks in advance.
an
I have one form with a list box that show us some fields of the records
selected through comboboxes in same form.
With a command button, in same form too, open a report with all the fields
of the selected records in listbox.
But when report open, appear all records of query that it gives support to
the listbox.
It would like to be able to print only records showed in listbox.
In command button to print, I have a next code:
Dim strFilter As String
DoCmd.OpenReport "R_1", acPreview, , strFilter
strFilter = "NAI = Forms!F_MultiField!ListBox!NAI"
(Where NAI is one number to edentify each record).
Thanks in advance.
an