Microsoft
Software
Hardware
Network
Question : Sum Group Footer using textbox reference instead of Field reference
I am trying to put a sum in a group footer by referencing the textbox name instead of the value of the Field. The reason for doing this is that two different values are going into the same field in the database, depending upon another field.
Eg.
Field1 Field2
10,000 Y
-9,000 N
2,000 Y
I want to sum Field1 where Field2 = Y
If anyone can think of a different way, I'm ready to try it!!
Many thanks in advance
Answer : Sum Group Footer using textbox reference instead of Field reference
Thanks for the suggestion martenrune
Got it sorted by using a CASE statement in my original sql:
CASE Field2
WHEN Y THEN Field1
ELSE 0
END FieldA,
CASE Field2
WHEN N THEN Field1
ELSE 0
END FieldB,
This created two new fields, which I can sum etc
Random Solutions
Nortel VPN Installed as a service or client ?
How to format sql date convert(varchar, getdate(),101) to surpress leading 0's
Tape to Mp3 program
Adobe InDesign on OSX....
Need sample on how to acess Oracle using ojdbc14.jar
Warm Standby/Hot Standby
How to plug an IDE cable from a motherboard to a laptop's Hard drive
MS ACCESS MAKE TABLE QUERY: How do you get it to "not" prompt you 'yes' again when it's about to paste the data into the new table?
suggestions for turn a windows xp pc into a file server
ASA Audit Trigger -- Get Column Name