Hi,
I'm having a problem with some query criteria and I'm not sure why it itsn't working.
I have a form with several drop boxes that allow the user to select a Chemical element symbol (C, H, N, O etc.). Next to these boxes I have a text box that allows them to enter a number. The idea is they can use these to build up a chemical formula (C3H7NO2) and then search this against a column in a table that contains chemical formulas and return the ones that match the formula entered.
I have tried the following code Like "*" & [Forms]![SearchF]![ElementOne]&"*"&[Forms]![SearchF]![ElementNumberOne]&"*" etc. but it doesn't work.
Can anyone help with this?
It would also be good if the letters and number could be in any order in the dropdown boxes, i.e. C6H2N2O2 would return C6H2N2O2 and C6N2H2O2 etc.
Is this possible?
Many thanks,
Gavin.