Results 1 to 4 of 4
  1. #1
    angie is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Dec 2013
    Posts
    232

    using the else statment to get results into a text box

    llf optionone= true then
    Totalamountdue= me.financedprice


    llf optionone= false then
    Totalamountdue= null
    else
    llf optiontwo= true then
    Totalamountdue= me.financedpricetwo
    llf optiontwo= false then
    Totalamountdue= null

    What I am trying to do is have the finance price to changeto which option is selected (one or two)
    If neither is selected than the default is null

  2. #2
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,423
    what if both are selected?

  3. #3
    angie is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Dec 2013
    Posts
    232
    I want to limit it so only one can be selected. I have tried to get the above to work but something is not right
    i have limited the selected by using the following. but still need to get the above to work thanks


    Private Sub OptionOne_AfterUpdate()
    If Me.OptionOne = True Then
    Me.OptionTwo = False
    End If

    End Sub

  4. #4
    angie is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Dec 2013
    Posts
    232
    I got it to work,,,, thank you

    Private Sub OptionTwo_AfterUpdate()
    If Me.OptionTwo = True Then
    Me.OptionOne = False
    Me.TotalAmountDue = Me.FinancedPricetwo
    End If

    End Sub

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 01-10-2016, 06:47 PM
  2. Replies: 3
    Last Post: 05-02-2013, 10:36 AM
  3. if statment
    By ismailkhannasar in forum Access
    Replies: 3
    Last Post: 01-31-2013, 06:48 AM
  4. if statment or case statment?
    By whojstall11 in forum Forms
    Replies: 4
    Last Post: 07-09-2012, 01:44 PM
  5. Like statment
    By brew in forum Programming
    Replies: 2
    Last Post: 12-01-2011, 03:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums