Hi everyone,
This isn't a must, as I can do this the long-winded way, but is it possible/has anyone tried nesting an If statement within the condition of another If Statement in Access? I'm essentially trying to do something like:
If (If Gender = Male Then // Age_x// Else // Age_y End If) < Age_z Then
a
Else
b
End If
So far, I just get a compile error message (expected: expression) every time I try to run nested If statements.. If anyone has any suggestions I'd appreciate it, thanks :)
This isn't a must, as I can do this the long-winded way, but is it possible/has anyone tried nesting an If statement within the condition of another If Statement in Access? I'm essentially trying to do something like:
If (If Gender = Male Then // Age_x// Else // Age_y End If) < Age_z Then
a
Else
b
End If
So far, I just get a compile error message (expected: expression) every time I try to run nested If statements.. If anyone has any suggestions I'd appreciate it, thanks :)