I have created a form with 2 combo boxes. One Combo-box containing makes and one containing prices.<br>
I have then put a button on the form that prompts to open a report depending upon what data is chosen from the combo-box.<br>
It runs OK if either combo-box is set to find "*ALL", but if for example I search for "Watches" and less than "£500" it cannot handle this.<br>
<br>
I have used the code:<br>
<br>
DoCmd.OpenReport [Reprtname], acViewPreview, , ("[Make]='" & [Forms]![Formname]![Make] & "'" And ("[Price]<" & [Forms]![Formname]![Price])<br>
<br>
It doesn't seem to like the And function that I have used in the coding. Is there a differnet way of coding this??<br>
<br>
Thanks, <p>Ben Smith<br><a href=mailto:Ben.Smith@nswl-tr.nwest.nhs.uk>Ben.Smith@nswl-tr.nwest.nhs.uk</a><br><a href= > </a><br>
I have then put a button on the form that prompts to open a report depending upon what data is chosen from the combo-box.<br>
It runs OK if either combo-box is set to find "*ALL", but if for example I search for "Watches" and less than "£500" it cannot handle this.<br>
<br>
I have used the code:<br>
<br>
DoCmd.OpenReport [Reprtname], acViewPreview, , ("[Make]='" & [Forms]![Formname]![Make] & "'" And ("[Price]<" & [Forms]![Formname]![Price])<br>
<br>
It doesn't seem to like the And function that I have used in the coding. Is there a differnet way of coding this??<br>
<br>
Thanks, <p>Ben Smith<br><a href=mailto:Ben.Smith@nswl-tr.nwest.nhs.uk>Ben.Smith@nswl-tr.nwest.nhs.uk</a><br><a href= > </a><br>