Hi,

Im trying to validate a txt box,

If txtoverdraft.Text = "No", I want it so that any instance of no e.g. No, nO, no, NO what would I use here?

VB Code:
  1. If txtoverdraft.Text = "No" And txtbalance.Text < 0 Then
  2.  
  3. 'if its not at the end of the file
  4. If (Not datCities.Recordset.EOF) And (Not datCities.Recordset.EOF) Then
  5.  
  6.         'Message box
  7.         MsgBox "Overdraft not available for this client, Please enter balance greater than 0"
  8.        
  9.         txtbalance.Text = ""
  10.        
  11.         'Doesn't save
  12.         Action = 0
  13.        
  14.         txtbalance.SetFocus
  15.  
  16. End If
  17. End If

Thanks joePC