I have a form with chkboxes for each field of the table to be queried as well as common operators (=, <, >, ect...) and then a txtbox where the user can enter what they want to query for. I can extract all of the info from the form but i am not sure how to go about making the query. I know that I can call a function as a parameter to the query. I have tried passing the whole query string to the function and have the query use that to no avail. For example in the criteria box of the query builder i put MyFunction(). The function returns for example...PartNumber > 1234567 or > 1234567. I can do either. This is not bringing up any records because as far as I can see, the query is trying to find PartNumber = > 1234567. How can i fix this? I would like the user to be able to select how the query is run with out teaching them to use the query builder in access. Any help is greatly appreciated. Thanks