Hello Beeyen
I have been trying to answer this question for you in another newsgroup -
microsoft.public.access.
Allen's calendar form returns only a date, with no time component. If you
want the result to include a time as well, then you will need to input the
time separately and add it to the date selected in the calendar.
I don't know of any popup calendar that will return both a date AND a time.
You can input the time in a number of different ways. The simplest would be
to have a textbox where the user types the time - for example, "9:30" or
"18:15" or "4:40 pm".
Another option would be to have a combo box listing selectable times in
increments of, say 15 minutes, for the period of the day that is most likely
required. So long as the combo box does not have the LimitToList property
set, the user could type another time in, if the required one were not in
the list.
Another option would be to have two combo boxes to select hours and minutes,
and maybe an option group to select am or pm. This form of time selection
is used on many web pages, but personally, I find it extremely annoying and
time-consuming to use.
Once the time has been inputted or selected, you can add it to the selected
date and store it.
If you really want to have the date AND time returned by the popup calendar,
then add your time selection control(s) to Allen's form, and change the code
behind the OK button to add the time to the selected date before returning
the result.
--
Good Luck
Graham Mandeno [Access MVP]
Auckland, New Zealand
Beeyen said:
Good Day All,
I have been attempting for days now various ways to include the time with
the date to a field when using Allen Browne's popup calendar; similar to
Now(). I have searched Google, Yahoo, Microsoft and the Discussion Groups.
Surely, someone has done it or needed it. If you know how this can be
accomplished, if you could graciously provide the instruction and coding,
it
will very much appreciated.
Thanks