Your right. Its not creating a new record. This is what is happening.
When the form opens it automatically opens to todays date.
When you click on a different date, the [MyDate] field goes to the selected date, but the data on the appointment page stays the same as todays appointments.
Its almost like the code is placing todays date into [MyDate] field without changing the record, (the db is set up for only one date to exist, and every time the db is opened it checks and creates dates for up to 2 months in advance) hence the duplicate record warning.
As for the code itself, I'm not getting any VB errors. its just a dup error. To stop the VB error I was getting earyler I had to change the format type (I live in canada). This is the code I have now:
Private Sub Calendar1_Click()
Set rs = Me.Recordset.Clone
rs.FindFirst "[MyDate] = #" & Format(Me.Calendar1, "dd mm yy") & "#"
If Not rs.NoMatch Then
Me.Bookmark = rs.Bookmark
End If
End Sub
It is almost identical to the code you gave me just "mmm d yyyy" was changed to "dd mm yy".
I am using Access 2002.
PS. If it wasnt for guys like you and places like this forum, I would burn this project to cd... drink acid... and pee on it.
