Full Version: If Then Function
UtterAccess Discussion Forums > And More... > Visual Basic 2003 and Later
d00d101
If I have...

If Create = vbYes Then

how do I tell it to skip or just continue instead of having to paste all of the code again under this If function?

This is my No... so if its Yes, I want it to skip over this and continue with the rest of the code.

ElseIf Create = vbNo Then
Sheets("Master Worksheet").Visible = False
Sheets("Data by Sold-to").Visible = False
Sheets("Next Steps").Visible = False
Exit Sub
End If
Jeff B.
If {this condition} Then
' do this (or do nothing!)
Else
' do that (or those things)
End If

Try checking Access HELP for detailed syntax...
d00d101
Thank you, Sir.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.