B
BlueWolverine
hello,
MS ACCESS 2003 on XP PRO.
I have a query (obviously) and one of the criteria (in design mode) used to
be:
<>"PDI And <>"PD"
But now I need exception in case I am specifying (on a form) that I mean PDI
or PD.
so I'm trying to write the criteria something like this:
IIf([Forms]![MainMenu]![g_Route]="Pre-Drive
Checklist","PDI",IIf([Forms]![MainMenu]![g_Route]="Post Drive
Checklist","PD","<> 'PDI' And <> 'PD'"))
This works if either of the conditionals is met, but fails if, say
([Forms]![MainMenu]![g_Route]="Bob and Tom").
Meaning, I can no longer replicate the criteria being <>"PDI And <>"PD"
How can I pass that back to the query as part of the IIF statement? If
there's another way to do it, I'm open to suggestions, but I don't really
want to use VBA for this particular task. Thank you.
Please let me know Thank you!
I have tried all of the following with no luck.
IIf([Forms]![MainMenu]![g_Route]="Pre-Drive
Checklist","PDI",IIf([Forms]![MainMenu]![g_Route]="Post Drive
Checklist","PD",([QMC MASTER LIST].[GQRS CAT]<>"PDI") And ([QMC MASTER
LIST].[GQRS CAT]<>"PD")))
IIf([Forms]![MainMenu]![g_Route]="Pre-Drive
Checklist","PDI",IIf([Forms]![MainMenu]![g_Route]="Post Drive
Checklist","PD","<>'PDI' And <>'PD'")))
IIf([Forms]![MainMenu]![g_Route]="Pre-Drive
Checklist","PDI",IIf([Forms]![MainMenu]![g_Route]="Post Drive
Checklist","PD","<>""PDI"" And <>""PD"""))
IIf([Forms]![MainMenu]![g_Route]="Pre-Drive
Checklist","PDI",IIf([Forms]![MainMenu]![g_Route]="Post Drive
Checklist","PD",Not "PDI" And Not "PD"))
MS ACCESS 2003 on XP PRO.
I have a query (obviously) and one of the criteria (in design mode) used to
be:
<>"PDI And <>"PD"
But now I need exception in case I am specifying (on a form) that I mean PDI
or PD.
so I'm trying to write the criteria something like this:
IIf([Forms]![MainMenu]![g_Route]="Pre-Drive
Checklist","PDI",IIf([Forms]![MainMenu]![g_Route]="Post Drive
Checklist","PD","<> 'PDI' And <> 'PD'"))
This works if either of the conditionals is met, but fails if, say
([Forms]![MainMenu]![g_Route]="Bob and Tom").
Meaning, I can no longer replicate the criteria being <>"PDI And <>"PD"
How can I pass that back to the query as part of the IIF statement? If
there's another way to do it, I'm open to suggestions, but I don't really
want to use VBA for this particular task. Thank you.
Please let me know Thank you!
I have tried all of the following with no luck.
IIf([Forms]![MainMenu]![g_Route]="Pre-Drive
Checklist","PDI",IIf([Forms]![MainMenu]![g_Route]="Post Drive
Checklist","PD",([QMC MASTER LIST].[GQRS CAT]<>"PDI") And ([QMC MASTER
LIST].[GQRS CAT]<>"PD")))
IIf([Forms]![MainMenu]![g_Route]="Pre-Drive
Checklist","PDI",IIf([Forms]![MainMenu]![g_Route]="Post Drive
Checklist","PD","<>'PDI' And <>'PD'")))
IIf([Forms]![MainMenu]![g_Route]="Pre-Drive
Checklist","PDI",IIf([Forms]![MainMenu]![g_Route]="Post Drive
Checklist","PD","<>""PDI"" And <>""PD"""))
IIf([Forms]![MainMenu]![g_Route]="Pre-Drive
Checklist","PDI",IIf([Forms]![MainMenu]![g_Route]="Post Drive
Checklist","PD",Not "PDI" And Not "PD"))