Results 1 to 6 of 6
  1. #1
    Erictsang is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jul 2017
    Posts
    154

    Problem with Subforms in Tab Control

    Dear Guru

    I have made a Tab Control with 3 Tabs in a Form

    Profile_frm
    then

    Accommodaton_Subfrm
    Financial -subform
    Activities-subform

    Have no idea, the subform field are dim and unable to change /amend

    Any idea where will went wrong?


    Eric

  2. #2
    ranman256's Avatar
    ranman256 is online now VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    on the tab OnChange event, set the subform's source

    Code:
    Select Case TabCtl4.Value
      Case "Phones"
         subFrm.SourceObject = "frmPhones"
      Case "clients"
         subFrm.SourceObject = "frmClients"
      Case "Invoices"
         subFrm.SourceObject = "frmInvoices"
    End Select

  3. #3
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Hard to tell what is wrong from your description of the problem. You could post your dB for analysis.......

  4. #4
    orange's Avatar
    orange is online now Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,725

  5. #5
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Quote Originally Posted by Erictsang View Post

    ...Have no idea, the subform field are dim and unable to change /amend...
    Are the Record Sources of the Subforms based on multi-tables Queries? Many such Queries are Read-Only. Have a look at Allen Browne's excellent article that explains why Multi-Table Queries are frequently Read-Only:

    Why is my query read-only?

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  6. #6
    Micron is offline Virtually Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,798
    ...Have no idea, the subform field are dim and unable to change /amend...
    AFAIK, this has no bearing on whether or not the fields appear "dim". This sounds like a design setting; i.e. the fields of the subform are disabled. If the tab or page is disabled, I still don't think that would dim the controls of the form that is on the page.
    Last edited by Micron; 08-11-2017 at 08:32 PM. Reason: clarification
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 02-24-2016, 08:51 PM
  2. Sizing Subforms within Tab Control
    By EddieN1 in forum Forms
    Replies: 3
    Last Post: 08-25-2013, 06:56 PM
  3. Subforms and Tab Control?
    By Kevo in forum Forms
    Replies: 8
    Last Post: 05-26-2012, 12:53 AM
  4. Replies: 1
    Last Post: 11-25-2010, 11:00 AM
  5. Control addressing on subforms
    By JB in forum Access
    Replies: 1
    Last Post: 12-09-2005, 09:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums