So I am trying to use a form to define criteria for a query to execute. So far it has been working however I ran into a problem when trying to make the form combo box be the column it looks up. I have basic sql knowledge and am just learning so any help would be appreciated. My code is so far
SELECT MAX([300]) AS MAXPRESSURE
FROM [PRESSURE TEMP]
WHERE MATERIAL='WCB'
the 300 is the column name and that is where I would like it to be the form info. I have tried using
MAX([PRESSURE TEMP].[Forms]![SELECTION]![Combo0]) and it has not worked. then I tried adding ' ' and it just displays the text. If it makes a difference the form entry is using a combo box to limit user options