473,398 Members | 2,389 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

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 2278
"MOC835" <Mo****@gmail.comwrote in news:1166406861.450305.26150
@n67g2000cwd.googlegroups.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 'frmStudentEntry' with a tab that has a
subform under it called 'sfrmAssignDates'.

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 'frmCalendarIssue' or 'frmCalendarReturn' 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.twcny.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.comwrote in news:1166547969.833159.166930
@t46g2000cwa.googlegroups.com:
Here is the skinny on my form...it is being used in a school.
I have a main form called 'frmStudentEntry' with a tab that has a
subform under it called 'sfrmAssignDates'.

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 'frmCalendarIssue' or 'frmCalendarReturn' 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.twcny.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
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...
2
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?...
8
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
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...
9
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
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...
1
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...
3
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...
6
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.