Hey there! Sign in to join this conversationNew here? Join for free
x Turn on thread page Beta

Can someone help me with a code for session watch

Announcements
    • Thread Starter
    Offline

    0
    ReputationRep:
    hello, i want to create a function that when i click on session the fee to be billed will automaticlly update to the fee to be paid field.
    can you pleasse tell me the entire Visual basic for this, as i do not know anything about visual basics.

    the session and prices are
    morning-£10.,00
    afternoon-£10.00
    evening-£15.00
    evening with extension-£20.00
    special-£10.00

    thanks a lot, all i know it starts of as
    if session is morning then fee to be paid field is £10.00
    but i dont know if it is right so please tell me

    THANKS ALOT
    Offline

    1
    ReputationRep:
    If me.session = "Morning" Then
    me.fee = "£10.00"
    elseif me.session = "Evening" Then
    me.fee = "£25.00"
    else
    me.fee = "£23.00"
    endif

    That's how to lay it out, make sure you use the correct variable names for your project. I don't include the Morning and Afternoon sessions and set the elseif to that price.
    • Thread Starter
    Offline

    0
    ReputationRep:
    what does them me. stand for
    e.g.
    me.session
    me.fee
    Offline

    0
    ReputationRep:
    its an easy way of finding the name normally.....you dont need them but if you have loads of modules, its easier to find them.
    Offline

    2
    ReputationRep:
    (Original post by mpatel400)
    as i do not know anything about visual basics.
    What in God's name are you doing Computing for then? Do you pay attention in class?
 
 
 
Reply
Submit reply
Turn on thread page Beta
Updated: April 17, 2006
Poll
Do I go to The Streets tomorrow night?

The Student Room, Get Revising and Marked by Teachers are trading names of The Student Room Group Ltd.

Register Number: 04666380 (England and Wales), VAT No. 806 8067 22 Registered Office: International House, Queens Road, Brighton, BN1 3XE

Write a reply...
Reply
Hide
Reputation gems: You get these gems as you gain rep from other members for making good contributions and giving helpful advice.