On your Button, Double Click to enter the Code Window.
on First Line, enter this commands:
If Trim(TextBox1.Text) = "" Or (TextBox2.Text) = "" Then
TextBox3.Text = "Please Enter Numbers on Both Fields"
Exit Sub
End If
Call InsertData()
End Sub
---Enter your other codes here ---
EX.
Example Program:
No comments:
Post a Comment