tnx
If Text1.Text = "" Or Text2.Text = "" Or Text3.Text = "" Or Text4.Text = "" Then
MsgBox "Please input the required data", vbExclamation
Else
MsgBox "Saved"
End If
With Adodc1.Recordset
.AddNew
.Fields("id").Value = Text1.Text
.Fields("fname").Value = Text2.Text
.Fields("mname").Value = Text3.Text
.Fields("lname").Value = Text4.Text
.Fields("bday").Value = Combo1.Text & " " & Combo2.Text & " " & Combo3.Text
.Update
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
End With

New Topic/Question
Reply



MultiQuote




|