Hi everyone!I need some help in getting my search query to display results in a subform.
I have an umbound search form (MasterSearch3) where users can search the table by 2 criteria (unbound comboboxes named Customer Surname and Site Post Code that select entries from MoreSpace Master table). I have designed SQL query (MasterSearch) that searches for the record based on those 2 criteria:
SELECT (I select all of my fields)
FROM [MoreSpace Master]
WHERE ((([MoreSpace Master].[Customer Surname])=Forms![MasterSearch3]![Customer Surname]) And (([MoreSpace Master].[Site Post Code])=Forms![MasterSearch3]![Site Post Code])) Or ((([MoreSpace Master].[Site Post Code])=Forms![MasterSearch3]![Site Post Code]) And ((IsNull(Forms![MasterSearch3]![Customer Surname]))<>False)) Or ((([MoreSpace Master].[Customer Surname])=Forms![MasterSearch3]![Customer Surname]) And ((IsNull(Forms![MasterSearch3]![Site Post Code]))<>False)) Or (((IsNull(Forms![MasterSearch3]![Customer Surname]))<>False) And ((IsNull(Forms![MasterSearch3]![Site Post Code]))<>False));
Now, the query itself works fine and picks up appropriate records without any problem, but when I create a form based on this query and make it into a subform (SubFormSearch) in MasterSearch3 form and place a button in parent form ([SubFormSearch].Requery) nothing happens.
I have been playing around with it for few days now and am stuck...
Can anyone point me in the right direction please?
Thanks in advance