I have a listbox that searches according to my textbox entry. Now i want to print that list. I have a preview button, and used this code on click. Why doesn't it work? It keeps giving me a syntax error.
DoCmd.OpenReport "File Report", acViewPreview, , "[Files].[File Index]" = & Forms![File Search]!lstResults
DoCmd.OpenReport "File Report", acViewPreview, , "[Files].[File Index]" = & Forms![File Search]!lstResults