I've got the following code to ask the user what criteria they want to use for generating an SQL string which is then used to generate a custom report. Now it does work and registers what the user types in, however, all it does when it opens the report is bring up another input box with what I typed in as its heading and asks for the input again? Why?
Thanks
Thanks
Code:
For Each varItem In List8.ItemsSelected
StrSQL = StrSQL + "[" & List8.ItemData(varItem) & "] = " & InputBox("Please Specify " & List8.ItemData(varItem) & " :") & " AND "
Next varItem