Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > Courses > Access > Templates > Calendar Control
Back to Access Calendar Control    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Subform Reference
Sami Shamma 
             
2 years ago
Hi @Richard

I am using your date picker which works great and does not have the issue the Access date picker has.

But I am having problem using it in a subform. I tried few things, but I cannot get it to work.

This line generates an error not finding my subform:

    RDate = Nz(Forms(ReturnForm).Controls(ReturnField).Value, 0)

I tried to call it with this but did not work:

   SelectDate "ChapF!" & Me.Name & ".Form", "CancelDate"
Adam Schwanz  @Reply  
            
2 years ago
Which one are you trying to use? Just using myCalnedarF or using the popup/embedded with it?? And getting that selection to go into a subform?
Adam Schwanz  @Reply  
            
2 years ago
Also, are you just using this for that one form to get it to work? If so, I'd just program it with hard coding instead, just Forms!FormName!SubFormName.Form!FieldName kind of thing, if you're using this everywhere, and sometimes it's going to be subform and sometimes it will be a normal form, then you'll have to code a way to detect if form or subform and two coding directions
Sami Shamma OP  @Reply  
             
2 years ago
I was trying not to change the Global Function, just change what I send to it as I use it in several forms.
I use the popup version.

The image below shows it working in the main (GREEN) form but not in the subform (RED)
Sami Shamma OP  @Reply  
             
2 years ago

Adam Schwanz  @Reply  
            
2 years ago
If your only using it in a few spots, it would probably be easier to just add an invisible text box onto the calendar, then when you open the calendar from whatever form its on, just set the value of that textbox to 1 or 2 or whatever, then code the calendar something like

If Textbox=1 then
forms!formname!date=dateselected
ElseIf Textbox=2 Then
forms!formname!subformname.Form!Date=dateselected
End If
Sami Shamma OP  @Reply  
             
2 years ago
I will give it a try. Thank you Adam

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

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: 1/21/2026 11:05:47 AM. PLT: 1s