Hmm I didn have one more question. If the code is essentially telling the report which field list values to display, how does it know how to format the form? How does it know where to place each of the boxes? Was just kind of curious.
The report should already have things formatted and with fields available that the items go into. The code we have doesn't modify the report itself in any way. It just modifies which records (and which extra field it is pulling). You can have a bogus field in your initial query that is named CustomField and then you can modify the code I gave you to include that:
Code:
strSQL = "Select Product, Customer, " & Me.VariableBox & [B][COLOR=red]" As CustomField" &[/COLOR][/B] _
" FROM [Basic Program Info]" & _
" ORDER BY Product"
That way it will slide right into the field you have reserved for it on the report. Sorry, I had forgotten that little detail.
Good deal, works perfect now. I tried to add to your rep as a thank you, but I already did so on a previous post so it wont let me do it again. Thanks again tho