I keep getting runtime 424 error object required when tring to run program works fine untill it gets to caculate commission any assistants would be appreciated.
Private Sub cmdCalc_Click()
'caculate total commission
lblCommision.Ca ption = Val(txtSales.Te xt) * Val(txtRate.Tex t)
lblCommission.C aption = Format(lblCommi ssion.Caption, "currency")
cmdPrint.SetFoc us
End Sub
Private Sub cmdClear_Click( )
'Clears screen for next commission.
txtName.Text = ""
txtSales.Text = ""
txtTerritory.Te xt = ""
lbtsales.Captio n = ""
txtRate.Text = ".10"
lblCommision.Te xt = ""
txtName.setfouc us
End Sub
Private Sub cmdExit_Click()
End
End Sub
Private Sub cmdPrint_Click( )
' Hide command buttons before printing.
cmdCalc.Visible = False
cmdPrint.Visibl e = False
cmdClear.Visibl e = False
cmdExit.Visible = False
PrintForm
'displays command buttons after form is printed
cmdCalc.Visible = True
cmdPrint.Visibl e = True
cmdClear.Visibl e = True
cmdExit.Visible = True
cmdClear.SetFoc us
End Sub
Private Sub Label3_Click()
End Sub
Private Sub Label5_Click()
.
End Sub
Private Sub lblcomission_Cl ick()
End Sub
Private Sub Label1_Click()
End Sub
Private Sub txtRate_Change( )
txtRate.Text = Val(0.1)
End Sub
Private Sub cmdCalc_Click()
'caculate total commission
lblCommision.Ca ption = Val(txtSales.Te xt) * Val(txtRate.Tex t)
lblCommission.C aption = Format(lblCommi ssion.Caption, "currency")
cmdPrint.SetFoc us
End Sub
Private Sub cmdClear_Click( )
'Clears screen for next commission.
txtName.Text = ""
txtSales.Text = ""
txtTerritory.Te xt = ""
lbtsales.Captio n = ""
txtRate.Text = ".10"
lblCommision.Te xt = ""
txtName.setfouc us
End Sub
Private Sub cmdExit_Click()
End
End Sub
Private Sub cmdPrint_Click( )
' Hide command buttons before printing.
cmdCalc.Visible = False
cmdPrint.Visibl e = False
cmdClear.Visibl e = False
cmdExit.Visible = False
PrintForm
'displays command buttons after form is printed
cmdCalc.Visible = True
cmdPrint.Visibl e = True
cmdClear.Visibl e = True
cmdExit.Visible = True
cmdClear.SetFoc us
End Sub
Private Sub Label3_Click()
End Sub
Private Sub Label5_Click()
.
End Sub
Private Sub lblcomission_Cl ick()
End Sub
Private Sub Label1_Click()
End Sub
Private Sub txtRate_Change( )
txtRate.Text = Val(0.1)
End Sub
Comment