R
Rosana
This is driving me mad. It has to do with logics but I am
not very good at it, obviously.
I have made a macro that runs as an event of a 'Show'
button on a Dialogue form. It is designed to show
different orders depending on the information you enter on
the dialogue. The possibilities are entering Beginning
Date and/or Ending Date and/or Customer name.
All the conditions I have written work except for 5 and 7
that retrieve nothing. I know they are incompatible with
the rest because they run fine when I delete all the other
conditions.
CAN YOU SEE WHERE IS THE INCOMPATIBILITY?
THANK YOU VERY MUCH!!!!!!!!!!!!!!!!!!!!!!
1. IsNull([BeginningDate] And [EndingDate] And
[CustomerSelect])
2. Not (IsNull([BeginningDate] And [EndingDate])) And
IsNull([CustomerSelect])
3. Not (IsNull([BeginningDate] And [EndingDate] And
[CustomerSelect]))
4. Not (IsNull([BeginningDate])) And IsNull([EndingDate])
And IsNull([CustomerSelect])
5. Not (IsNull([BeginningDate] And [CustomerSelect])) And
IsNull([EndingDate])
6. Not (IsNull([EndingDate])) And IsNull([BeginningDate])
And IsNull([CustomerSelect])
7. Not (IsNull([EndingDate] And [CustomerSelect])) And
IsNull([BeginningDate])
8. IsNull([BeginningDate] And [EndingDate]) And Not (IsNull
([CustomerSelect]))
not very good at it, obviously.
I have made a macro that runs as an event of a 'Show'
button on a Dialogue form. It is designed to show
different orders depending on the information you enter on
the dialogue. The possibilities are entering Beginning
Date and/or Ending Date and/or Customer name.
All the conditions I have written work except for 5 and 7
that retrieve nothing. I know they are incompatible with
the rest because they run fine when I delete all the other
conditions.
CAN YOU SEE WHERE IS THE INCOMPATIBILITY?
THANK YOU VERY MUCH!!!!!!!!!!!!!!!!!!!!!!
1. IsNull([BeginningDate] And [EndingDate] And
[CustomerSelect])
2. Not (IsNull([BeginningDate] And [EndingDate])) And
IsNull([CustomerSelect])
3. Not (IsNull([BeginningDate] And [EndingDate] And
[CustomerSelect]))
4. Not (IsNull([BeginningDate])) And IsNull([EndingDate])
And IsNull([CustomerSelect])
5. Not (IsNull([BeginningDate] And [CustomerSelect])) And
IsNull([EndingDate])
6. Not (IsNull([EndingDate])) And IsNull([BeginningDate])
And IsNull([CustomerSelect])
7. Not (IsNull([EndingDate] And [CustomerSelect])) And
IsNull([BeginningDate])
8. IsNull([BeginningDate] And [EndingDate]) And Not (IsNull
([CustomerSelect]))