Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Calendar Seminar Lessons    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
List Boxes
Roger Strate 
       
2 months 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  
       
2 months ago
CalendarF and MonthlyCalendarF
Roger Strate OP  @Reply  
       
2 months ago

Roger Strate OP  @Reply  
       
2 months ago

Roger Strate OP  @Reply  
       
2 months ago

John Campbell  @Reply  
     
2 months ago

John Campbell  @Reply  
     
2 months ago
I would use subforms instead of list boxes.  Something is messed up with your criteria.  Look at the video again and make sure you have the correct criteria in the query that feeds the days.  Once you have one form working, then it is copy and paste and then alter the criteria..
Roger Strate OP  @Reply  
       
2 months ago
I will definitely try that, I have had that issue before with list boxes. This is my query criteria:
ApptTime: Format([CalendarDateTime],"hh:nn AM/PM"), which Richard posted in the Seminar. My date/time field in the CalendarT is "CalendarDateTime". Thank you so much for responding.
John Campbell  @Reply  
     
2 months ago
I've posted Day1 Through Day 3.  Just follow this pattern and you should get it to work.
John Campbell  @Reply  
     
2 months ago

John Campbell  @Reply  
     
2 months ago

John Campbell  @Reply  
     
2 months ago

Roger Strate OP  @Reply  
       
2 months ago
Thanks John, I will definitely try that, the coding makes a lot more sense to me. I will let you know how it goes. Thank you again.
Roger Strate OP  @Reply  
       
2 months ago
Thank you again John, I tried your query solution with no luck as I kept getting error messages,  #Name etc. Sorry about that.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Calendar Seminar Lessons.
 

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: 4/12/2026 7:23:52 PM. PLT: 1s