Originally posted by ali3n8
Is this anybetter?..... ............... .......
Private Sub ButtonsName_Click()
If IsNull([B]Contact Number[/B]) = False Then
Me.Recordset.FindFirst '[Contact Number]=' & [B]Contact Number[/B]
Me!Contact Number = Null
If Me.Recordset.NoMatch Then
MsgBox "No record found", vbOKOnly + vbInformation, "Sorry"
Me![B]Contact Number [/B] = Null
End If
End If
End Sub
Private Sub Contactbut_Click()
If IsNull(Contactnum) = False Then
Me.Recordset.FindFirst '[Contact Number]=' & Contactnum
Me!Contactnum = Null
If Me.Recordset.NoMatch Then
MsgBox "No record found", vbOKOnly + vbInformation, "Sorry"
Me!Contactnum = Null
End If
End If
End Sub
Comment