Access 2007-2016
Access 2000-2003
Access Seminars
TechHelp Support
Tips & Tricks
Access Forum
Course Index
Topic Glossary
Insider Circle
Home   News   Tips   Glossary   Templates   Forums   Help   Logon   Order   Contact Us  

News      User Comments     History     Notify Me

Access Calendar Seminar
By Richard Rost   Richard Rost on Facebook Richard Rost on Twitter Richard Rost on Google Plus Richard Rost on LinkedIn Email Richard Rost

Manage your appointments, and create printable monthly reports from your Access databases.

Permanent Link
Course Link: Access Calendar Seminar
Keywords: access calendars appointments
Post Reply

triple state box Comment from Lynda Chase @ 9/8/2014
Duh!!!  Can't see the woods for the trees - I found my error!  Soooo frustrated with myself lol.

Sorry for been a time waster.

Lynda :o)
Show Just This Thread        Post Reply
triple state box Comment from Lynda Chase @ 9/8/2014
Hi Richard.

I have the triple state box working, however, when i click on it, which should 'show open' it comes up blank.

This is the code I put in:
Private Sub ApptListBox_DblClick(Cancel As Integer)

    DoCmd.OpenForm "CalendarF", , , "CalendarID=" & ApptListBox
End Sub

Private Sub Form_Open(Cancel As Integer)

    ShowClosedItems = False
End Sub

Private Sub ShowClosedItems_AfterUpdate()

    If ShowClosedItems = True Then
        ApptListBox.RowSource = "SELECT CalendarID, LocationID, WorkerID, CustomerID, DateTime, Description FROM CalendarT WHERE Closed=TRUE ORDER BY DateTime;"
    ElseIf ShowClosedItems = False Then
        ApptListBox.RowSource = "SELECT CalendarID, LocationID, WorkerID, CustomerID, DateTime, Description FROM CalendarT WHERE Closed=FALSE ShowClosedItems ORDER BY DateTime;"
        ApptListBox.RowSource = "SELECT CalendarID, LocationID, WorkerID, CustomerID, DateTime, Description FROM CalendarT ORDER BY DateTime;"
    End If
End Sub

I can't seem to see where I've gone wrong.

Show Just This Thread        Post Reply
Triple State Checkboxes Comment from Ronald Pero @ 8/15/2013
I did not realize you could type null in as a default value.  That seems to be what is required for the checkbox to work as a triple state.  If you have yes or no in the default field it behaves as if triple state is set to no.  If you set default as False it locks the checkbox.

Reply from Richard Rost:

It shouldn't happen that way. NULL means "no value." You should be able to specify any of the three as default values.
Show Just This Thread        Post Reply
Triple State Checkboxes Comment from Ronald Pero @ 8/14/2013
After further playing around with the triple state of my checkbox is that at least in Access 2010 you cannot put anything in the default value for the checkbox.  The video says to set that to False but maybe that worked in 2007, in 2010 at least it makes the checkbox act like its locked and so it won't change state.

Reply from Richard Rost:

I'm not sure what you mean. You can set the default value of a check box to YES, NO, or (in the case of a tri-state) NULL. I know for a fact that this works in Access 2007 and 2013. I don't see why it wouldn't work in 2010.
Show Just This Thread        Post Reply
Triple State Checkboxes Comment from Ronald Pero @ 8/12/2013
I cannot seem to get the triple state version of the listbox to work in Access 2010.  I found an article online that said you needed to change the closed items checkbox data type to integer instead of yes/no.  Doing this did seem to prevent me from getting an error but it still doesn't seem to work as a triple state.  Does anyone have any suggestions?

Reply from Richard Rost:

They're a pain to work with. They're easiest as UNBOUND check boxes to select criteria on a form. If you want to use it with a BOUND field, then YES, you need to make the data type Integer or Long Integer (you can't use a Y/N value). Yes will be -1, No will be 0, NO SELECTION will be NULL.
Show Just This Thread        Post Reply

Add Your Comments or Subscribe
If you just want to subscribe to get email updates when the News is updated, then enter your name and email address and check the Notify Me box below. If you would optionally like to add your comments below to be posted, they are welcome.
  Your Name:  Required
  Your Email:  NOT Public


Sorry about this step. It's just to keep the spam bots away:
  Verify: What is 8+5:
  Notify me when the News is updated.
  Remember Me for my next comments
Please do not use this form for Customer Service inquiries! If you have questions about your account, shipping info, courses you've ordered, need passwords, etc. please use the Customer Service Center instead.

I value your comments. They will be displayed on this page (above). Your name will be displayed, but your email address will not be.
As always, I promise to never give away your personal information to anyone else, ever.

NOTE: If you don't leave your name and email address, DON'T expect a reply. I can't promise a personal reply to everyone who posts here. I TRY my best, but I cannot guarantee it. If you don't leave your real name and email address, I won't even bother. I usually just hit DELETE. -Richard



You may want to read these articles from the 599CD News:

8/25/2018NEW: Access Dev 9, 10, 11
8/25/2018Microsoft Access Developer 11
8/25/2018Microsoft Access Developer 10
8/25/2018Microsoft Access Developer 9
8/23/2018Access Dev 11 is ONLINE
8/17/2018Access Dev 10 is ONLINE
8/15/2018Access Tip: Search Form
8/15/2018Access Tip: Locked v. Enabled
8/15/2018Access Dev 9 is ONLINE
7/31/2018Microsoft Access Developer 8

Visual Basicindex
Account Login
Online Theater
Lost Password
Free Upgrades
Insider Circle
Student Databases
Change Email
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search Our Site
Waiting List
Production Schedule
Collapse Menus
Live Chat
Customer Support
WalkThru Tutorials
Consulting Services
About Us
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Video Tutorials
MYOLP Memberships
Idiot's Guide to Excel
Volume Discounts
Payment Info
Terms of Sale
Gift CDs
Live Chat
General Info
Support Policy
Contact Form
Email Us
Mailing Address
Phone Number
Fax Number
Course Survey
Facebook    Twitter

Google Plus    LinkedIn

Blog RSS Feed    YouTube Channel
Richard Rost Microsoft MVP