klwu
Brainy!!
- Local time
- Today, 19:57
- Joined
- Sep 13, 2004
- Messages
- 47
Hi!
I wrote the codes to reset the form, means that when the user click on 'Reset', all the fields will turn blank. But when I test the button, a message came out said "invalid use of null". Could someone please guide me on this? Thanks
I wrote the codes to reset the form, means that when the user click on 'Reset', all the fields will turn blank. But when I test the button, a message came out said "invalid use of null". Could someone please guide me on this? Thanks
Code:
Private Sub cmdClear_Click()
On Error GoTo Err_cmdClear_Click
cmbCompanyNo = Null
RefNo = Null
Name = Null
IP = Null
PortNo = Null
NetworkID = Null
Email = Null
AltEmail = Null
Exit_cmdClear_Click:
Exit Sub
Err_cmdClear_Click:
MsgBox Err.Description
Resume Exit_cmdClear_Click
End Sub