D
DubboPete
Hi all,
I have many instances where I use a calendar control, on many different
forms within a database.
Up till now, I have created a new form for each instance where a calendar
control is needed (Cal1, Cal2, Cal3, und so weiter), and I was wondering if
there is a way of setting just _one_ calendar control to respond and set a
value for two different fields on two different forms, on separate calls of
the calendar?
Example of what I do at the moment:
' For Form 1 where departure date is selected by calendar
' and using the Onclick event of the calendar control
Forms!Departure![depdate].value = me.calendar1.value ' calendar1 is
located on form 'Cal1'
' For Form 2 where consigned date is selected by calendar
' and using the Onclick event of the calendar control
Forms!Despatch![condate].value = me.calendar2.value ' calendar2 is
located on form 'Cal2'
It all works fine, but creates many overheads by creating many Calxx forms!
I suppose I mean that if a calendar control is CALLED from a form's command
button, the calendar control would be able to differentiate which form's
command button called it, and place the correct value in the necessary field
in the calling form. That's where I am hitting the wall of knowledge!!!
any help greatly appreciated!
DubboPete
I have many instances where I use a calendar control, on many different
forms within a database.
Up till now, I have created a new form for each instance where a calendar
control is needed (Cal1, Cal2, Cal3, und so weiter), and I was wondering if
there is a way of setting just _one_ calendar control to respond and set a
value for two different fields on two different forms, on separate calls of
the calendar?
Example of what I do at the moment:
' For Form 1 where departure date is selected by calendar
' and using the Onclick event of the calendar control
Forms!Departure![depdate].value = me.calendar1.value ' calendar1 is
located on form 'Cal1'
' For Form 2 where consigned date is selected by calendar
' and using the Onclick event of the calendar control
Forms!Despatch![condate].value = me.calendar2.value ' calendar2 is
located on form 'Cal2'
It all works fine, but creates many overheads by creating many Calxx forms!
I suppose I mean that if a calendar control is CALLED from a form's command
button, the calendar control would be able to differentiate which form's
command button called it, and place the correct value in the necessary field
in the calling form. That's where I am hitting the wall of knowledge!!!
any help greatly appreciated!
DubboPete