Hi All,
I have a problem with a query that I have created. I have two criteria that I need to be satisfied for the records to reflect what I want. Let me explain. The records that I do not want to see are the records where the field tech is equal to a value entered on my form and where the field year is equal to a value entered on my form. The problem I am having is that when I am inserting the HAVING clause into my query as down below:
HAVING ((tch_tbl.maint_tch)<>[Forms]![frm_mntc]![tch]) AND (([qry_lst_maint]![yr])<>[Forms]![frm_mntc]![yr])
I am losing all of the records that have the year equal to the year on the form. I need to keep some of those. I just need to not have the ones where the tech is equal to the form value and the year is equal to the form value. This is probably a simple fix, but I can't see that right now. Please let me know what you think.
Thanks,
Noel
I have a problem with a query that I have created. I have two criteria that I need to be satisfied for the records to reflect what I want. Let me explain. The records that I do not want to see are the records where the field tech is equal to a value entered on my form and where the field year is equal to a value entered on my form. The problem I am having is that when I am inserting the HAVING clause into my query as down below:
HAVING ((tch_tbl.maint_tch)<>[Forms]![frm_mntc]![tch]) AND (([qry_lst_maint]![yr])<>[Forms]![frm_mntc]![yr])
I am losing all of the records that have the year equal to the year on the form. I need to keep some of those. I just need to not have the ones where the tech is equal to the form value and the year is equal to the form value. This is probably a simple fix, but I can't see that right now. Please let me know what you think.
Thanks,
Noel