listbox.requery doesn't work

supmktg

Registered User.
Local time
Today, 15:15
Joined
Mar 25, 2002
Messages
360
On my main form I have a listbox that shows recent and upcoming student birthdays. When I add a student's birthday, I have a refresh button that should requery the list. Unfortunately, the refresh button does not work.

(If I hit F9, it does refresh the list.)

Here is the rowsource of my listbox:
Code:
SELECT Format([student_DOB],"mmm dd") AS ShowBday, [Student_Last] & ", " & [Student_First] AS Student, tblHighSchools.HS_Name
FROM tblStudents INNER JOIN tblHighSchools ON tblStudents.Student_HS = tblHighSchools.HS_ID
WHERE (((DateSerial(Year(Date()),Month([Student_DOB]),Day([Student_DOB]))) Between Date()-30 And Date()+30) AND ((tblStudents.Student_DOB) Is Not Null) AND ((tblStudents.Student_ActiveStatus)="Active"))
ORDER BY DateSerial(Year(Date()),Month([Student_DOB]),Day([Student_DOB])), [Student_Last] & ", " & [Student_First];

Can someone help me figure out why
Code:
Me.lstBdays.Requery
doesn't work?

Thanks,
Sup
 
Never mind...I figured it out.
For anyone having this same issue,
Code:
me.Recalc
does the trick.
 

Users who are viewing this thread

Back
Top Bottom