Results 1 to 3 of 3
  1. #1
    aminkassar is offline Novice
    Windows XP Access 2007
    Join Date
    May 2010
    Posts
    2

    automatic text field update based on previous text field value

    Hi guys,

    I really need some help over here. I have one text box called 'Base Fee' and another called 'Results'. What I want, is to enter a value in 'Base Fee' and get an automatic text update in 'Results'. I have been using VB in MS access, but with no success. Here is what I have so far. Please note I suck at programming.

    Private Sub Base_Fee_AfterUpdate()
    Dim msg As String
    If 0 < Me.Base_Fee > 250001 Then
    msg = "Rounded Down to the Nearest $1000"
    Results = msg
    End If
    End Sub



    What am I doing wrong. Also if there is an alternative please let me know.

    Thanks

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I'm not clear on what your test is intended to be, but the syntax is wrong. Here's a guess:

    If Me.Base_Fee > 0 AND Me.Base_Fee < 250001 Then

    Also this should be:

    Me.Results = msg
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    aminkassar is offline Novice
    Windows XP Access 2007
    Join Date
    May 2010
    Posts
    2
    Hi there,

    I actually managed to find an alternative. But much appreciated nonetheless.

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

Similar Threads

  1. split text field
    By Zukster in forum Queries
    Replies: 4
    Last Post: 01-11-2011, 10:01 PM
  2. Replies: 12
    Last Post: 08-09-2009, 07:35 AM
  3. Replies: 0
    Last Post: 04-17-2008, 09:24 AM
  4. Split text field into two text fields
    By Grant in forum Access
    Replies: 6
    Last Post: 01-31-2008, 05:52 AM
  5. Quick way to stuff field names into text field
    By kfinpgh in forum Programming
    Replies: 0
    Last Post: 01-04-2007, 01:13 PM

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