Yes, the DataType is still Date/Time. However, I changed the format to display m/d.
Changing the format only changes how the data is displayed.
I used a form named "Form13", two text boxes named "startDate" and "stopDate" and a button named "cmdRequery".
The button code is:
Code:
Private Sub cmdRequery_Click()
On Error GoTo Err_cmdRequery_Click
Me.Requery
Exit_cmdRequery_Click:
Exit Sub
Err_cmdRequery_Click:
MsgBox Err.Description
Resume Exit_cmdRequery_Click
End Sub
Here is the query I came up with:
Code:
SELECT [Birthday Table].id, [Birthday Table].Birthday
FROM [Birthday Table]
WHERE (((Month([Birthday])) Between Month([forms]![form13].[startdate]) And Month([forms]![form13].[stopdate])) AND ((Day([Birthday])) Between Day([forms]![form13].[startdate]) And Day([forms]![form13].[stopdate])))
ORDER BY [Birthday Table].Birthday;
You need to change the form name (in blue) to your form name.....
It compares the month of the birthday to the months in the two text boxes and the day of the birthday to the days in the two text boxes.
My $0.02 worth