Try this
![]()
Private Sub txtRate_Exit(ByVal Cancel As MSForms.ReturnBoolean) With Me If .txtQty = "" Or .txtRate = "" Then MsgBox "Data missing" Exit Sub Else: .txtAmount.Value = CLng(.txtQty.Value) * CCur(.txtRate.Value) End If End With End Sub
Try this
![]()
Private Sub txtRate_Exit(ByVal Cancel As MSForms.ReturnBoolean) With Me If .txtQty = "" Or .txtRate = "" Then MsgBox "Data missing" Exit Sub Else: .txtAmount.Value = CLng(.txtQty.Value) * CCur(.txtRate.Value) End If End With End Sub
Hope that helps.
RoyUK
--------
For Excel Tips & Solutions, free examples and tutorials why not check out my web site
Free DataBaseForm example
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks