L
lambo
Guest
Hi
I will try illustrate this problem which I'm stuck with using pseudocode. There are 4 fields in a table; Choose_Type, AAA, BBB and Final_Value. I'm not sure if I have to code it using VBA, as I'm new to using MAccess.
If (Choose_Type = 1) Return (AAA) // Final_Value == AAA
If (Choose_Type = 2) Return ( BBB) // Final_Value == BBB
Else Return (0)
Is there a way to implement the above pseudocode using simple Queries (SQL or in normal query design view) ? Any advise would be of great help.
Thanks.
I will try illustrate this problem which I'm stuck with using pseudocode. There are 4 fields in a table; Choose_Type, AAA, BBB and Final_Value. I'm not sure if I have to code it using VBA, as I'm new to using MAccess.
If (Choose_Type = 1) Return (AAA) // Final_Value == AAA
If (Choose_Type = 2) Return ( BBB) // Final_Value == BBB
Else Return (0)
Is there a way to implement the above pseudocode using simple Queries (SQL or in normal query design view) ? Any advise would be of great help.
Thanks.