Results 1 to 3 of 3

Thread: Access -how pass a from data to sub form within a tab control?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2004
    Location
    malaysia
    Posts
    89

    Resolved Access -how pass a from data to sub form within a tab control?

    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?
    Last edited by kkc; Aug 24th, 2005 at 11:05 PM. Reason: resolved

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Access -how pass a from data to sub form within a tab control?

    How about
    VB Code:
    1. frmSubA.txtDate.text = frmDate.Calendar1.Value

  3. #3

    Thread Starter
    Lively Member
    Join Date
    May 2004
    Location
    malaysia
    Posts
    89

    Re: Access -how pass a from data to sub form within a tab control?

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width