G
ghostman via AccessMonster.com
again, i have this query for my report:
SELECT qryNTSMonth.ID, qryNTSMonth.TraineeID, Trainees.LastName, Trainees.
FirstName, Trainees.JobTitle, Trainees.ContractorName, Trainees.
SupervisorContactNo, qryNTSMonth.TSID, qryNTSMonth.NTSMonth, qryNTSMonth.
NTSModule
FROM Trainees INNER JOIN qryNTSMonth ON Trainees.TraineeID = qryNTSMonth.
TraineeID
WHERE (((qryNTSMonth.NTSMonth) Like [Forms]![frmNTSMonthScheduleSelect]!
[cboSelectMonth] & "*"));
and a combo box [cboSelectMonth] which has a row source of:
1;"January";2;"February";......."December"
and a command button [macro] to open the report based on the combo box
selection.
The purpose is to display the next training session based on the month
selection from the combo box. So, if September is selected, it will display
schedule training session for September.
I got it all working except for the month of January. If January is selected,
all scheduled training sessions shows up while from Feb up to December are
working fine. Like, i dont have training schedule on February, and shows no
record (works fine!) and so as the others showing correct record. I cant
figure out why January show all records..
something is wrong..
SELECT qryNTSMonth.ID, qryNTSMonth.TraineeID, Trainees.LastName, Trainees.
FirstName, Trainees.JobTitle, Trainees.ContractorName, Trainees.
SupervisorContactNo, qryNTSMonth.TSID, qryNTSMonth.NTSMonth, qryNTSMonth.
NTSModule
FROM Trainees INNER JOIN qryNTSMonth ON Trainees.TraineeID = qryNTSMonth.
TraineeID
WHERE (((qryNTSMonth.NTSMonth) Like [Forms]![frmNTSMonthScheduleSelect]!
[cboSelectMonth] & "*"));
and a combo box [cboSelectMonth] which has a row source of:
1;"January";2;"February";......."December"
and a command button [macro] to open the report based on the combo box
selection.
The purpose is to display the next training session based on the month
selection from the combo box. So, if September is selected, it will display
schedule training session for September.
I got it all working except for the month of January. If January is selected,
all scheduled training sessions shows up while from Feb up to December are
working fine. Like, i dont have training schedule on February, and shows no
record (works fine!) and so as the others showing correct record. I cant
figure out why January show all records..
something is wrong..