Results 1 to 2 of 2
  1. #1
    REBBROWN is offline Novice
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Aug 2010
    Posts
    14

    referencing subforms

    Hello all,


    I have an issue that is driving me CRAZY and hopefully someone can help.
    Please forgive my length here but it will save back and forth clarification
    So, I have this database that opens to a main form.

    On the left is a box with several selection buttons (this takes up roughly 25% of total form area) and then a subform takes up the remaining 75%.

    The name of the subform is: Switchboard_Subform
    And the Source Object is: Frm_Switchboard_Main

    Frm_Switchboard_Main is essentially an empty form, a blank placeholder with a Logo.
    When the user clicks on one of the selection buttons it loads that form into the subform Switchboard_Subform.
    Here is the code behind that:

    Private Sub Command5_Click()
    Me!Switchboard_Subform.SourceObject = "FRM_CREATE_DRV_PRF"
    End Sub

    The form FRM_CREATE_DRV_PRF is loaded in.
    So far, so good.
    No issues.


    Here is the issue:
    I have another form that is loaded just like the one described above, it is called:
    SUB_DRVPRF_SRCH.
    It is a date range search for that will populate a continuous form with data once the dates are selected.
    On this form (actually the query behind it) is a date field named ModDate for Modified date.
    In order to capture the dates for the search this is what I have built into the query in the criteria for ModDate.

    Between [Forms].[SUB_DRVPRF_SRCH].[BeginDate] And [Forms].[SUB_DRVPRF_SRCH].[EndDate]

    This works PERFECTLY but ONLY if I make this Form a pop-up.
    The minute I try and load this in to the Switchboard_Subform I get the following pop up messages:

    Enter Parameter Value
    Forms.SUB_DRVPRF_SRCH.BeginDate
    (Enter or Cancel) then

    Enter Parameter Value
    Forms.SUB_DRVPRF_SRCH.EndDate

    Here is one I have tried to no avail
    Between Me.Forms.Switchboard_Subform.Form.BeginDate And Me.Forms.Switchboard_Subform.Form.BeginDate

    Actually I have tried several more but my brain is fried so any idea how I can get this to work INSIDE the subform or do I have to make it and pop up?

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870

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

Similar Threads

  1. Replies: 11
    Last Post: 05-13-2015, 11:10 PM
  2. Subforms Inside Subforms
    By LordPanzer in forum Access
    Replies: 1
    Last Post: 10-11-2013, 05:19 PM
  3. Referencing Controls on and off a Tab
    By dccjr in forum Programming
    Replies: 2
    Last Post: 04-25-2013, 05:43 AM
  4. Referencing Issue
    By rosh41 in forum Forms
    Replies: 1
    Last Post: 07-15-2010, 04:09 AM
  5. Referencing a Subroutine
    By Lockrin in forum Programming
    Replies: 1
    Last Post: 02-26-2010, 10:09 AM

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