Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21207

[RESOLVED] text dosnt lower or eqals to another text

$
0
0
i have a text 12 that suppose to check if its Lower or equal then text 2 but when i update
and put a lower amount it dosnt say that its Lower
this is my code
when i save
Code:

  If Txt(12).text <= Txt(2).text Then
  MsgBox "the price of the customer cant be lower or equal to the orginal price", vbExclamation
  Txt(12).text = ""
  Txt(12).SetFocus
  Exit Sub
  End If


this is when i update
Code:

With FrmInventory.LsVw.SelectedItem
    If Txt(12).text <= Txt(2).text Then
  MsgBox "the price of the customer cant be lower or equal to the orginal price", vbExclamation
  Txt(12).text = ""
  Txt(12).SetFocus
  Exit Sub
  End If


Viewing all articles
Browse latest Browse all 21207