Teri Bridges
Member
- Local time
- Yesterday, 18:41
- Joined
- Feb 21, 2022
- Messages
- 187
Guys, I have this code to display a message box if the field entry is a duplicate. I would like to add code to clear the field entry if OK is clicked. I don't know how to do that.
Private Sub CatalogID_AfterUpdate()
If DCount("[CatalogID]", "Course_tbl", "[CatalogID]= '" & Me![CatalogID] & "'") > 0 Then
MsgBox "Course Catalog ID Already Exists.!"
End If
End Sub
Private Sub CatalogID_AfterUpdate()
If DCount("[CatalogID]", "Course_tbl", "[CatalogID]= '" & Me![CatalogID] & "'") > 0 Then
MsgBox "Course Catalog ID Already Exists.!"
End If
End Sub