Lord_Vader
Registered User.
- Local time
- Today, 16:38
- Joined
- Mar 24, 2009
- Messages
- 15
I think this might be a "no duh" question but I have a field in a query:
It returns whether the notification is "Current" or "Prior" based on some fun stuff. Other queries use this field to filter (it's used pretty heavily)
I'm thinking that it would be faster (by a lot, a little?) to change this to be like.
Am I nuts thinking this would improve performance (My end report takes almost a minute to run with only about 20% of the data entered so I'm trying to shave time wherever)
Penny for your thoughts?
Code:
PorC: IIf([d_Notification]>LastRepDate([txt_Plant]) And [d_Notification]<=RunDate(),"Current","Prior")
It returns whether the notification is "Current" or "Prior" based on some fun stuff. Other queries use this field to filter (it's used pretty heavily)
I'm thinking that it would be faster (by a lot, a little?) to change this to be like.
Code:
IsCurrent: IIf([d_Notification]>LastRepDate([txt_Plant]) And [d_Notification]<=RunDate(),True,False)
Am I nuts thinking this would improve performance (My end report takes almost a minute to run with only about 20% of the data entered so I'm trying to shave time wherever)
Penny for your thoughts?