melaniecarr23
Programmer
I have a query auto_cc which pull from tbl_auto_cc
One field gives the current month. today: DatePart("m",Now())
Two fields are using switch based on the today field's value.
currency: Switch([today]=1,[Jan],[today]=2,[Feb],[today]=3,[Mar],[today]=4,[Apr],[today]=5,[May],[today]=6,[Jun],[today]=7,[Jul],[today]=8,[Aug],[today]=9,[Sep],[today]=10,[Oct],[today]=11,[Nov],[today]=12,[Dec])
paid: Switch([today]=1,[Jan_paid],[today]=2,[Feb_paid],[today]=3,[Mar_paid],[today]=4,[Apr_paid],[today]=5,[May_paid],[today]=6,[Jun_paid],[today]=7,[Jul_paid],[today]=8,[Aug_paid],[today]=9,[Sep_paid],[today]=10,[Oct_paid],[today]=11,[Nov_paid],[today]=12,[Dec_paid])
When I had the one field currency, everything worked out fine. When the paid field was added, I keep getting prompted for today when I run the query. I can't figure out why. Can someone please help me?
Thanks!
One field gives the current month. today: DatePart("m",Now())
Two fields are using switch based on the today field's value.
currency: Switch([today]=1,[Jan],[today]=2,[Feb],[today]=3,[Mar],[today]=4,[Apr],[today]=5,[May],[today]=6,[Jun],[today]=7,[Jul],[today]=8,[Aug],[today]=9,[Sep],[today]=10,[Oct],[today]=11,[Nov],[today]=12,[Dec])
paid: Switch([today]=1,[Jan_paid],[today]=2,[Feb_paid],[today]=3,[Mar_paid],[today]=4,[Apr_paid],[today]=5,[May_paid],[today]=6,[Jun_paid],[today]=7,[Jul_paid],[today]=8,[Aug_paid],[today]=9,[Sep_paid],[today]=10,[Oct_paid],[today]=11,[Nov_paid],[today]=12,[Dec_paid])
When I had the one field currency, everything worked out fine. When the paid field was added, I keep getting prompted for today when I run the query. I can't figure out why. Can someone please help me?
Thanks!