No probs Cous'
Suggestion: To avoid errors when empty string ("") or an alpha character is entered
in either Text1 or Text2, validate them at the start of Command1_Click using:
VB Code:
Option Explicit Private Sub Command1_Click() If Not (IsNumeric(Text1.Text) And IsNumeric(Text2.Text)) Then MsgBox "Numbers only please.", vbOKOnly + vbInformation, "Data Entry" Exit Sub End If 'Your Code Here........ ' ' ' End Sub
Also, could you please edit your first post and select the green 'tick' to indicate that this tread is resolved.
Cheers,
Bruce.





Reply With Quote