I have created a database for a senior softball league.
If we sign up a new player, I would know to check to see if they played in the past, but I'm going to be giving this database to someone else and they may not. So, I'm trying to put some checks and balances in it.
When I add a new player, I have it checking for duplicates in this way in Form_BeforeUpdate:
I want to display the possible duplicates. Would I need to display it(them) in a form that pops up? If so, if one that is displayed is the correct one, can I select it, cancel the new record, and have my first form display it? If so, how?
Thanks in advance for any help.
Debbie
If we sign up a new player, I would know to check to see if they played in the past, but I'm going to be giving this database to someone else and they may not. So, I'm trying to put some checks and balances in it.
When I add a new player, I have it checking for duplicates in this way in Form_BeforeUpdate:
Code:
If Me.NewRecord Then
If Not IsNull(Me.LN) And Not IsNull(Me.BirthDate) Then
Dim x As Variant
x = DCount("*", "Members", "[LN] = '" & Me.LN & "' And [Birthdate] = #" & Me.BirthDate & "#")
If x > 0 Then
... I DON'T KNOW WHAT TO DO HERE!
Cancel = True
End If
End If
End If
I want to display the possible duplicates. Would I need to display it(them) in a form that pops up? If so, if one that is displayed is the correct one, can I select it, cancel the new record, and have my first form display it? If so, how?
Thanks in advance for any help.
Debbie