I have two textboxs (txtYear and txtMonth) and one button (cmdBtn) in Form1
I need to check if the data typed the txtYear and txtMonth already exist in Table1 (Year , Month) when I click the button.
If Year And Month exist in Table1
Then MsgBox "Data already exist"
Else Open Form2
EndIf
Pivate Sub cmdBtn_Click()
.
.
.
End Sub
I need to check if the data typed the txtYear and txtMonth already exist in Table1 (Year , Month) when I click the button.
If Year And Month exist in Table1
Then MsgBox "Data already exist"
Else Open Form2
EndIf
Pivate Sub cmdBtn_Click()
.
.
.
End Sub