Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Developer Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Trouble with List Boxes in Calendar Seminar
Roger Strate 
      
35 days ago
When using the code from lesson 4 in the calendar seminar:

SELECT CalendarID, ApptTime, Description FROM CalendarQ WHERE Forms!DatePickerF!StartDate>=CalendarDateTime AND Forms!DatePickerF!StartDate<CalendarDateTime + 1 ORDER BY ApptTime;

My list box does not update unless I hard code 11:59 PM in the StartDate field:
=Date()+#11:59:00 PM#.

I have added another ListBox named Day2 (the first ListBox is Day1.
The second ListBox will not update using the following code:

SELECT CalendarID, ApptTime, Description FROM CalendarQ WHERE Forms!DatePickerF!StartDate>=CalendarDateTime + 1  AND Forms!DatePickerF!StartDate<CalendarDateTime + 2 ORDER BY ApptTime;

It's possible that hard coding the =Date()+#11:59:00 PM# might interfere with this but removing the code still does not allow the ListBox (Da2) to update.

I have two consecutive dates together February 12 and 13 but the ListBox Day2 will not update. I will try to attach 3 screen shots of CalendarF and the two listboxes. I am not getting any error messages.
Roger Strate OP  @Reply  
      
35 days ago

Roger Strate OP  @Reply  
      
35 days ago

Roger Strate OP  @Reply  
      
35 days ago

Roger Strate OP  @Reply  
      
35 days ago
This is the code in my StartDate field: =Date()+#11:59:00 PM#
Roger Strate OP  @Reply  
      
35 days ago

Alex Hedley  @Reply  
           
34 days ago
Is this different to your List Boxes question?
Roger Strate OP  @Reply  
      
34 days ago
Hi Alex, yes the two list boxes are slightly different with listbox1 (Day1) showing data but listbox2 (Day2) shows no data. Listbox2 (Day2) shows nothing even if I copy and paste Day1 or create a new Listbox (Day2). Listbox1 uses the code above while listbox2 uses the code below it but it only updates the first Listbox (Day1) when I choose the day AFTER the appointment date. I hope this makes sense.
Roger Strate OP  @Reply  
      
34 days ago
Roger  Sorry Alex, I didn't understand your question, no it's the same question just posted again.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Developer Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 3/14/2026 5:12:05 AM. PLT: 1s