By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,455 Members | 2,157 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,455 IT Pros & Developers. It's quick & easy.

if then function with 1 condition but 2 actions

robin a
P: 30
Hi,
I have a form I use to update employee records. In the "on click" event of the save command button, I need to run 2 queries if a condition is met, else simply save the record. I don't know how to set this up. I'm trying to do this:

If([condition1, then run query1 and run query 2, else goto new record.

thank you
Sep 13 '12 #1

✓ answered by Rabbit

Expand|Select|Wrap|Line Numbers
  1. If condition Then
  2.    do something
  3.    do something else
  4. Else
  5.    do something
  6. End If

Share this Question
Share on Google+
1 Reply


Rabbit
Expert Mod 10K+
P: 12,315
Expand|Select|Wrap|Line Numbers
  1. If condition Then
  2.    do something
  3.    do something else
  4. Else
  5.    do something
  6. End If
Sep 13 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.