Sample Codes Here:Private Sub txtFN_Change()Dim rs As New ADODB.Recordsetrs.Open "select * from tblsampledb where FirstName='" & txtFN.Text & "'", con, adOpenDynamicIf Not rs.EOF ThenMsgBox "YOUR PRIMARY KEY ALREADY EXIST!!", vbCritical, "Message"txtFN.Text = ""txtFN.SetFocuscmdS.Enabled = FalseElsecmdS.Enabled = TrueExit SubEnd If
Watch video below
0 (mga) komento:
Mag-post ng isang Komento