Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

How to show message when max chars in fied are reached

  • 10-11-2009 03:27PM
    #1
    Closed Accounts Posts: 2,696 ✭✭✭


    In VB - How do I test if max chars is reached and display message?
    
        
        If Me.TxNameOnBankAccount.MaxChar = True
            MsgBox "Name is max"
        End If
    End Sub
     
    


Comments

  • Closed Accounts Posts: 2,696 ✭✭✭mark renton


    john47832 wrote: »
    In VB - How do I test if max chars is reached and display message?
     
     
        If Me.TxNameOnBankAccount.MaxChar = True
            MsgBox "Name is max"
        End If
    End Sub
     
    


    sorry found it
     
     
        If Len(Me.TxNameOnBankAccount.Text) = 32
            MsgBox "Name is max"
        End If
    End Sub
     
    
    [/quote]


Advertisement
Advertisement