G
Guest
Hello,
I have a from that I want to filter by the valu eof a text box but the
form keeps prompting me for the text box value upon loading... Here is the
SQL
SELECT tblSpeedOfService.SOSID, tblSpeedOfService.SOSDate,
tblSpeedOfService.DayPartID, tblSpeedOfService.SOSTime, Month([SOSDate]) AS
CurMonth, Year([SOSDate]) AS CurYear FROM tblSpeedOfService WHERE
(((tblSpeedOfService.DayPartID)=1) And
((Month([SOSDate]))=Forms!sfrmBreakfast!txtMonth) And
((Year([SOSDate]))=Forms!sfrmBreakfast!txtYear));
I have a from that I want to filter by the valu eof a text box but the
form keeps prompting me for the text box value upon loading... Here is the
SQL
SELECT tblSpeedOfService.SOSID, tblSpeedOfService.SOSDate,
tblSpeedOfService.DayPartID, tblSpeedOfService.SOSTime, Month([SOSDate]) AS
CurMonth, Year([SOSDate]) AS CurYear FROM tblSpeedOfService WHERE
(((tblSpeedOfService.DayPartID)=1) And
((Month([SOSDate]))=Forms!sfrmBreakfast!txtMonth) And
((Year([SOSDate]))=Forms!sfrmBreakfast!txtYear));