LarryDeLaruelle
Technical User
I have used the Query by Form often to pass single value criteria to a query. I am now trying to pass multiple values (text) but can't seem to figure out the syntax.<br><br>I have a series of reports based on Diagnostic Codes and would like to set up a master query and pass the appropriate Diagnostic Codes to that query based on the user selection of report type.<br><br>I put the code in the On Click event for the report preview just before the DoCmd to run the preview. If I pass a single value I receive the expected results; however, when I try to pass multiple values I get zip.<br><br>I've tried txtDxCode ="304.00 or 304.01 or 304.91". <br><br>I've tried building the string one element at a time and that doesn't seem to work either<br><br>I've even tried using triple quote marks around the Dx codes to force the string to contain quotes around each element.<br><br>When I look at the string in debug and it "looks" ok.<br><br>So, the question is: How do you pass multiple OR values to a query from a form?<br><br>Thanks.<br><br><br> <p>Larry De Laruelle<br><a href=mailto:larry1de@yahoo.com>larry1de@yahoo.com</a><br><a href= > </a><br>