Sam Summers
Registered User.
- Local time
- Today, 00:05
- Joined
- Sep 17, 2001
- Messages
- 939
Hi everyone i have been chasing this problem around but still not really there with it.
I have a form with a combobox (cboMonth) with the RowSource -
01;January;02;February;03;March;04;April;05;May;06;June;07;July;08;August;09;September;10;October;11;November;12;December
On the AfterUpdate event opens the form (ViewByMonth).
The Record Source of the (ViewByMonth) form is:
So what i am trying to do is filter the records using (DateOfIncident) to only show records of the selected Month.
I have tried various ways and functions but not got it yet.
Many thanks in advance
I have a form with a combobox (cboMonth) with the RowSource -
01;January;02;February;03;March;04;April;05;May;06;June;07;July;08;August;09;September;10;October;11;November;12;December
On the AfterUpdate event opens the form (ViewByMonth).
The Record Source of the (ViewByMonth) form is:
Code:
SELECT Casualty.CategoryID, Casualty.DateOfIncident, Casualty.[Name(Optional)], Casualty.TradeID, Casualty.InjuryTypeID, Casualty.IngestInhaleID, Casualty.Position1, Casualty.Position2, Casualty.TypeID, Casualty.Position3, Format([Casualty].[DateOfIncident],"mm") AS [DATE]
FROM Casualty;
So what i am trying to do is filter the records using (DateOfIncident) to only show records of the selected Month.
I have tried various ways and functions but not got it yet.
Many thanks in advance