473,657 Members | 2,414 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Calendar Control on a continuous subform

I have calendar control that I am trying to use on a continuous subform
to select two dates.

My MainForm collects user data, and the continuous SubForm collects two
dates for that specific user...an IssueDate and a ReturnDate.

I am trying to give the user the option of entering the date into the
date field text box, or clicking a button next to the text box to open
a seperate form with a calendar in it (frmCalendar).

My problem is that I can get the form to open without a problem. I
can't seem to get it to pass the value from the calendar back to the
subform which contains the date fields.

Another problem I had was that when It would return the value back to
the subform, it would send it to the first record in the entire
subform, which wasnt for the specific user record that I was working
on.

I hope this is enough info for someone to help!

MOC

Dec 18 '06 #1
5 2299
"MOC835" <Mo****@gmail.c omwrote in news:1166406861 .450305.26150
@n67g2000cwd.go oglegroups.com:
My problem is that I can get the form to open without a problem. I
can't seem to get it to pass the value from the calendar back to the
subform which contains the date fields.
I hope this is enough info for someone to help!
Sure, that explains everything.

--
Lyle Fairfield
Dec 18 '06 #2
Some more information is required....... ...

How are you opening the calendar form? Are you using a button in the
main form or a double click on the subform.?

You have to be sitting on the record in the subform for either approach
to work, but we need to know more before any clear approaches can be
given.

Ron

Dec 18 '06 #3
Here is the skinny on my form...it is being used in a school.
I have a main form called 'frmStudentEntr y' with a tab that has a
subform under it called 'sfrmAssignDate s'.

Here are the fields in each table:

frmStudentEntry
StudentPK
StudentNo.
FirstNameMI
LastName
ASNo.
UserID
Principal

sfrmAssignDates
DatesPK
StudentPK
LockerPK
IssueDate
ReturnDate
The IssueDate and ReturnDate fields are text boxes that have a button
next to each field(on the subform) that the user can click to select a
date from a calendar. When clicking the button, it will open a form
called 'frmCalendarIss ue' or 'frmCalendarRet urn' depending on which
button is pressed.

My questions are :

(1) How do I use the same calendar for each date field on this form,
and in other forms.

(2) How do I link the Calendar so it will return the selected date to
the subform after closing out of the calendar form.

I hope this helps.

MIKE

mo*@NOSPAM.twcn y.rr.com

(remove the NOSPAM)
Ron2006 wrote:
Some more information is required....... ...

How are you opening the calendar form? Are you using a button in the
main form or a double click on the subform.?

You have to be sitting on the record in the subform for either approach
to work, but we need to know more before any clear approaches can be
given.

Ron
Dec 19 '06 #4
"MOC835" <Mo****@gmail.c omwrote in news:1166547969 .833159.166930
@t46g2000cwa.go oglegroups.com:
Here is the skinny on my form...it is being used in a school.
I have a main form called 'frmStudentEntr y' with a tab that has a
subform under it called 'sfrmAssignDate s'.

Here are the fields in each table:

frmStudentEntry
StudentPK
StudentNo.
FirstNameMI
LastName
ASNo.
UserID
Principal

sfrmAssignDates
DatesPK
StudentPK
LockerPK
IssueDate
ReturnDate
The IssueDate and ReturnDate fields are text boxes that have a button
next to each field(on the subform) that the user can click to select a
date from a calendar. When clicking the button, it will open a form
called 'frmCalendarIss ue' or 'frmCalendarRet urn' depending on which
button is pressed.

My questions are :

(1) How do I use the same calendar for each date field on this form,
and in other forms.

(2) How do I link the Calendar so it will return the selected date to
the subform after closing out of the calendar form.

I hope this helps.

MIKE

mo*@NOSPAM.twcn y.rr.com

(remove the NOSPAM)
Examining the code in the form modules in
one of the mdbs listed in
http://www.ffdba.com/datepicker.htm
may help.

--
Lyle Fairfield

http://www.ffdba.com/toyota/BurlingtonToyotaLease.htm

(just a sad story - read if bored)
Dec 19 '06 #5
I agree, that the datepicker mdb example that Lyle is referencing is a
good example.

I have used that form etc. in a number of applications. In most of my
cases, however, I have initiated the call on the double click of the
field involved instead of a separate button as the sample uses. Both
methods are viable. and easily done.

Ron

Dec 19 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
459
by: Lumpierbritches | last post by:
I have a Calendar control (me.mycal) and a subform sbfAppointments, with child/parent links from Parent/MyCal (ActiveX) to Child/ApptDate in the subform sbfAppointments. I would like to be able to click on a dat in the MyCal control and add it to the subform sbfAppointments. Any help would be greatly appreciated. Here is code: Option Compare Database
2
1872
by: PerryC | last post by:
How to pass a MS Calendar Control Calendar Value into a subform within the main form? Private Sub MyCalendar_AfterUpdate() Forms!.. = MyCalendar.Value End Sub This does not seem to work? Please advice.
8
2451
by: Shyguy | last post by:
Is it possible to create a calendar that shows previous input data and also allows for input of new data?
4
7002
by: Dave Boyd | last post by:
Hi, I have two very similar forms each with a subform. The main form gets a few fields from the user and passes this back to a query that the subform is bound to. The requery is done when the user enters the last qualifying field on the main form. In one case this works fine, the subform shows the data the user wants to update -- which means showing all the data put in previously (ie showing this via the requery and the continuous...
9
7418
by: Jack | last post by:
In the control source of a textbox, is there a way to refer to a column of a combobox? For example: =.Column(2) Thanks, Jack
3
1835
by: Kranman | last post by:
Hi All, Love this site, have gotten a lot from it. This is my first time posting though, so forgive me for any errors. I have an Access 2000 db where I have a main form of Contractors and on the main form is a subform of bonds carried by those contractors. I am trying to reference a field named "Bond" located on the subform in code that is run from the mainform and am having trouble with the syntax for this. Below is a sample of...
1
2929
by: gavo | last post by:
Hello everyone! Using A2K i have a form(a) with a subform(b) and within the subform there is a continuous subform(c). in the subform (b) there is a command button used to call a public function
3
15387
by: Typehigh | last post by:
I am a good programmer, but this one stumps me! I have a form with a continuous subform. The continuous subform contains records of data and may reach a depth of 1000's of entities. I have created a search button on my form and it does its job quite well. It presents the user with an inputbox, prompting for the string to search. Then the code returns with a record number of the record which contains the string. Here's the problem. I...
6
2256
by: cefrancke | last post by:
I've read up on Access and the limits of creating visible controls at run-time. I'm using Access 2003 and assume that it cant be done. I did find a clever method of having a main form (and in it's code) open up a subform in design mode (hidden maybe) and then using the CreateControl method, create controls. Save the subform and set a subform control on the main form to point to the subform (really a form) I just edited/designed.
0
8402
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8829
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8734
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8608
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6172
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5633
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4323
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1962
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1627
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.