If Field$("A") = "X" and Field$("B") = "Y" Then
D = "Z"
Else
If Field$("A") = "X" and Field$("B") = "Z" Then
D = "Q"
Else
D = "No value"
End if
DerivedField(D)
I find it easier to either do a decode or case statement using a derived field. Macros tend to slow down you querie and macros are alway after the fact. Not to mention, if you're using numbers with this querie you would have to seperately write a SUM field to calculate SUMS or COUNTS - and you can't even group or sort on macros.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.