Let me know if this is helpful:
If the box is checked, you use one query as the recordsource for the form,
if it's not, you use a different query. The first one pulls from the
Generated Start/End, the second from the Completed Start/End dates.
If Me.CheckBox Then
strSQL = "SELECT Table1.G_StartDate, Table1.G_EndDate,
Table1.C_StartDate, Table1.C_EndDate" & _
" FROM Table1" & _
" WHERE (((Table1.G_StartDate)=" &
[Forms]![frmData]![GeneratedStartDate] & ") AND ((Table1.G_EndDate)=" &
[Forms]![frmData]![GeneratedEndDate] & "));"
Else
strSQL = "SELECT Table1.G_StartDate, Table1.G_EndDate,
Table1.C_StartDate, Table1.C_EndDate" & _
" FROM Table1" & _
" WHERE (((Table1.C_StartDate)=" &
[Forms]![frmData]![CompletedStartDate] & ") AND ((Table1.C_EndDate)=" &
[Forms]![frmData]![CompletedEndDate] & "));"
End If
Me.RecordSource = strSQL
> I have a form that is baed on a particular query that contains two different
> sets of date criteria.
[quoted text clipped - 17 lines]
>
> I know I'm not making good sense. But I have to start somewhere
G-Man - 21 Mar 2007 23:54 GMT
Thank you so much for the response. I have simply been overwhelmed with stuff
and have just now got back to this. I will get back to you in the next day or
so. I really appreciate your response.
> Let me know if this is helpful:
>
[quoted text clipped - 45 lines]
> >
> > I know I'm not making good sense. But I have to start somewhere
G-Man - 05 Apr 2007 01:14 GMT
Tahnks so much. Finally found time to look this over again, your post was
right on track. Helped me "span a knowledge gap" so to speak!
> Let me know if this is helpful:
>
[quoted text clipped - 45 lines]
> >
> > I know I'm not making good sense. But I have to start somewhere