Quick explanation:
I have a number of different forms with date fields. I've got a popup form that has an Office 11 OCX Calendar on it. I'd like to use one pop-up form for all date entries instead of having to put an OCX object on every form.
So, steps are:
1) Open data form (frmData)
2) When you get to the date field (txtDateField), click a toggle button to show calendar
3) Calendar appears in a pop-up form (popCalendar), instead of being on the same form with it's visibility set to false
4) Click relevant value on calendar
5) Calendar form closes and populates field on original form { (frmData)!(txtDateField).Value = Value from (popCalendar) }
It all works as far as step 4), but 5) is where it all falls down. I'm just a bit stuck about how to get the information BACK to the form in question. I've tried to set the originator textbox by doing:
Dim Originator As TextBox
Set Originator = Forms![frmWithDateField]![txtDateField]
but this doesn't help, as the value is in the 'wrong' form code.
Can anyone help me out?
I have a number of different forms with date fields. I've got a popup form that has an Office 11 OCX Calendar on it. I'd like to use one pop-up form for all date entries instead of having to put an OCX object on every form.
So, steps are:
1) Open data form (frmData)
2) When you get to the date field (txtDateField), click a toggle button to show calendar
3) Calendar appears in a pop-up form (popCalendar), instead of being on the same form with it's visibility set to false
4) Click relevant value on calendar
5) Calendar form closes and populates field on original form { (frmData)!(txtDateField).Value = Value from (popCalendar) }
It all works as far as step 4), but 5) is where it all falls down. I'm just a bit stuck about how to get the information BACK to the form in question. I've tried to set the originator textbox by doing:
Dim Originator As TextBox
Set Originator = Forms![frmWithDateField]![txtDateField]
but this doesn't help, as the value is in the 'wrong' form code.
Can anyone help me out?