PDA

Click to See Complete Forum and Search --> : Access -how pass a from data to sub form within a tab control?


kkc
Aug 24th, 2005, 04:37 AM
Hi,
looking forward for your advice, the situation is like this:
i have master form, namely frmMaster.
within the frmMaster there is a tab control with 2 pages,
each page within the tab control has a sub form,
i.e page 1 of tab control have frmSubA and page 2 have frmSubB

when i press a date button in frmSubA, it come out a new form, frmDate, which have a calendar control, when the user click a date in the calendar control, i want to pass the date value back to a textbox control (i.e txtDate) to frmSubA,
How can i do that?

Hack
Aug 24th, 2005, 08:34 AM
How aboutfrmSubA.txtDate.text = frmDate.Calendar1.Value

kkc
Aug 24th, 2005, 11:04 PM
Hi Hack,
Thanx for your advice, but your codei s not working for me.
And i manage to get solved it yesterday.

visual basic code:
Application.Forms("frmMaster").Form.frmSubA.Form.txtDOB = calendardate.Value