Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Nesting an If within another If's condition statement

$
0
0
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 :)

Viewing all articles
Browse latest Browse all 13329

Trending Articles