Code:
Private Sub Command1_Click()
Dim degrees As Double
Dim minutes As Double
Dim seconds As Double
Dim decimals As Double
    
If Text1.Text <> "" Or Text2.Text <> "" Or Text3.Text <> "" Then
    degrees = Text1.Text
    minutes = Text2.Text / 60
    seconds = Text3.Text / 3600
    decimals = degrees + minutes + seconds
    Label6.Caption = decimals
ElseIf test1.Text = "" And Text2.Text = "" And Text3.Text = "" Then
    MsgBox "Please key in your input value", vbCritical, "Degree Converter"
End If
End Sub
if the textbox 1 ,2,3 is empty, i want it give a message.but with the code above, it came out an error "object required". Why?