Statement Woes (1 Viewer)

KevlarKev

Registered User.
Local time
Today, 10:30
Joined
Jan 16, 2013
Messages
26
Hello Access World I hope you can help me!

I am new to VBA and want to have one command button execute multiple commands. I wont bore you with all of the code I have but basically what I want to happen is this.

Click Button

Execute If Statement 1

Then

Execute If Statement 2

etc...

I don't want ElseIF statements because I want the first statement to run and if false to simply jump to the next statement. However, even if one statement turns out to be true I still want it to process the subsequent ones. I don't want it to simply stop the first time if gets to a statement that is true and ignore the rest.

Does this make sense?

Thanks!!!

Kev.
 

Cotty42

Registered User.
Local time
Today, 18:30
Joined
Feb 27, 2014
Messages
102
Seems like a fairly simple case of consecutive If statements,
i.e.

If this is true then
Do this
End If

If that is true then
Do that
End If

etc.

Hope this helps

Dave
 

KevlarKev

Registered User.
Local time
Today, 10:30
Joined
Jan 16, 2013
Messages
26
THANK YOU VERY MUCH!

No idea why I didn't think of that. Works a treat!!!

:)
 

Users who are viewing this thread

Top Bottom