C
consjoe
I have a form with an Option Group (frameBRDLate) setup that has 3 radio
buttons (Yes, No, Both). I then have a query that reads the value
returnedfrom frameBRDLate. The query pulls a "Yes/No" field from a table.
If -1 (Yes) is returned from the frame I want all "Yes" records returned
(this currently works correctly), if 0 (No) is returned from the frame I want
all "No" records returned (this currently works correctly). If 2 (both) is
returned from the frame I want all recrods (Yes and No) returned (this is not
working). When 2 is returned it ONLY returns me the "Yes" (-1) records. My
iif statement is below.
IIf([Forms]![frmReportSearch]![frameBRDLate]=2,([Assignment].[Late BRD])=0
Or ([Assignment].[Late BRD])=-1,[Forms]![frmReportSearch]![frameBRDLate])
I understand the whole Tripple state isse with an Option group but don't
believe that shoudl be an issue since I am using three different radio
buttons, not asking one radio button to give me three states.
If I add the below column to the end of my query I can see that 2 is in fact
being returned to my query.
Expr1: IIf([Forms]![frmReportSearch]![frameBRDLate]=2,"2 is returned","No")
This is driving me crazy, thanks in advance.
buttons (Yes, No, Both). I then have a query that reads the value
returnedfrom frameBRDLate. The query pulls a "Yes/No" field from a table.
If -1 (Yes) is returned from the frame I want all "Yes" records returned
(this currently works correctly), if 0 (No) is returned from the frame I want
all "No" records returned (this currently works correctly). If 2 (both) is
returned from the frame I want all recrods (Yes and No) returned (this is not
working). When 2 is returned it ONLY returns me the "Yes" (-1) records. My
iif statement is below.
IIf([Forms]![frmReportSearch]![frameBRDLate]=2,([Assignment].[Late BRD])=0
Or ([Assignment].[Late BRD])=-1,[Forms]![frmReportSearch]![frameBRDLate])
I understand the whole Tripple state isse with an Option group but don't
believe that shoudl be an issue since I am using three different radio
buttons, not asking one radio button to give me three states.
If I add the below column to the end of my query I can see that 2 is in fact
being returned to my query.
Expr1: IIf([Forms]![frmReportSearch]![frameBRDLate]=2,"2 is returned","No")
This is driving me crazy, thanks in advance.