Hey! Sign in to get help with your study questionsNew here? Join for free to post

Double Booking codes

Announcements Posted on
Uni student? You could win a Samsung Galaxy S7 or £500 of travel vouchers by taking this quick survey 05-05-2016
Talking about ISA/EMPA specifics is against our guidelines - read more here 28-04-2016
  1. Offline

    ReputationRep:
    where do i put the following codes please tell me
    If (Combo1.Text = "Morning") And ((Weekday(Text3.Text) = 2) Or (Weekday(Text3.Text) = 4)) Then MsgBox ("Error! This slot is allocated to: Play Group")
    If (Combo1.Text = "Morning") And ((Weekday(Text3.Text) = 2) Or (Weekday(Text3.Text) = 4)) Then Text3.Text = ""

    If (Combo1.Text = "Evening") And (Weekday(Text3.Text) = 3) Then MsgBox ("Error! This slot is allocated to: Guides & Brownies")
    If (Combo1.Text = "Evening") And (Weekday(Text3.Text) = 3) Then Text3.Text = ""

    If (Combo1.Text = "Evening") And (Weekday(Text3.Text) = 5) Then MsgBox ("Error! This slot is allocated to: Clubs & Scouts")
    If (Combo1.Text = "Evening") And (Weekday(Text3.Text) = 5) Then Text3.Text = ""

    where do i put these
    thanks in advacne
  2. Offline

    ReputationRep:
    That's VB code, which should go in the appropriate event, I'm guessing a submit button. Just double click it in design view and it'll take you to the relevant part of the code.

Reply

Submit reply

Register

Thanks for posting! You just need to create an account in order to submit the post
  1. this can't be left blank
    that username has been taken, please choose another Forgotten your password?
  2. this can't be left blank
    this email is already registered. Forgotten your password?
  3. this can't be left blank

    6 characters or longer with both numbers and letters is safer

  4. this can't be left empty
    your full birthday is required
  1. Oops, you need to agree to our Ts&Cs to register
  2. Slide to join now Processing…

Updated: March 12, 2006
TSR Support Team

We have a brilliant team of more than 60 Support Team members looking after discussions on The Student Room, helping to make it a fun, safe and useful place to hang out.

Today on TSR

CIE AS biology

Chat about your exam here

Poll
Who will be the next US president?
Quick reply
Reputation gems: You get these gems as you gain rep from other members for making good contributions and giving helpful advice.