Results 1 to 2 of 2
  1. #1
    queenbee is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2009
    Location
    Ohio
    Posts
    3

    Tab Control Pages

    I am using the following code that works!

    Private Sub NoticeID_Click()
    On Error GoTo Err_Notice_Click
    Dim FormName As String


    Dim LinkCriteria As String

    FormName = "NoticeDetail"

    LinkCriteria = "[NoticeID] =""" & Me.NoticeID & """"

    DoCmd.OpenForm FormName, , , LinkCriteria
    Exit_Notice_Click:
    Exit Sub
    Err_Notice_Click:
    MsgBox Err.Description
    Resume Exit_Notice_Click
    End Sub

    I am experiencing a problem when I change FormName to a TestForm with tab control pages, the data is not filtering into the TestForm. Any suggestions on how to make it work?
    Last edited by queenbee; 02-27-2009 at 10:52 AM. Reason: Add addition information

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    The WhereCondition argument of the OpenForm command puts a filter on the RecordSource of the form being opened. It does not care if there is a tab control on the form or not.

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

Similar Threads

  1. Control navigation pane
    By ohporter in forum Access
    Replies: 0
    Last Post: 05-27-2008, 12:45 PM
  2. Sending control to specific control
    By wasim_sono in forum Programming
    Replies: 2
    Last Post: 04-19-2007, 08:19 AM
  3. No object in this control
    By mtrcar1 in forum Access
    Replies: 0
    Last Post: 10-12-2006, 05:31 PM
  4. Grid Control - or something like that.
    By rhunt in forum Programming
    Replies: 1
    Last Post: 12-15-2005, 04:46 PM
  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