Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862

    The "Not Found" is an error trap for a record that is not Bookmarkable. Perhaps the switchboard applies a filter to the form when it opens it.

  2. #17
    Chekotah is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Mar 2014
    Posts
    32
    Switchboard code.zipYes the switchboard does have filters in it. any way to fix this. attached is the code for the switchboard.

  3. #18
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    You should be able to adjust how the form opens using the Switchboard manager. Perhaps you are asking the switchboard to open your form in Add mode. The below constants are what determine how your form opens

    Code:
        ' Constants for the commands that can be executed.
        Const conCmdGotoSwitchboard = 1
        Const conCmdOpenFormAdd = 2
        Const conCmdOpenFormBrowse = 3
        Const conCmdOpenReport = 4
        Const conCmdCustomizeSwitchboard = 5
        Const conCmdExitApplication = 6
        Const conCmdRunMacro = 7
        Const conCmdRunCode = 8
        Const conCmdOpenPage = 9
    I am going to guess you want an argument of 3 versus an argument of 2. You should be able to adjust the value related to the form/switchboard button via the Switchboard manager. The value for the argument is stored in a system table.

    The following code looks in the table for the value of the [Argument] field and applies it to a Select Case Statement.

    Code:
            ' Go to another switchboard.
            Case conCmdGotoSwitchboard
                Me.Filter = "[ItemNumber] = 0 AND [SwitchboardID]=" & rs![Argument]
               
            ' Open a form in Add mode.
            Case conCmdOpenFormAdd
                DoCmd.OpenForm rs![Argument], , , , acAdd

  4. #19
    Chekotah is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Mar 2014
    Posts
    32
    Thank you very much. That worked. I appreciate all the help. I am learning alot with this project. Now onto my next issue in it.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 6
    Last Post: 01-21-2014, 02:59 PM
  2. Changing from access 2003 to 2007
    By ashu.doc in forum Access
    Replies: 2
    Last Post: 09-17-2012, 09:41 PM
  3. Replies: 2
    Last Post: 06-18-2011, 09:55 AM
  4. Access db, save as 2003 to 2007
    By laavista in forum Access
    Replies: 2
    Last Post: 06-02-2010, 07:58 PM
  5. 2007 MDE will not Open in Access 2003
    By wmecook in forum Programming
    Replies: 4
    Last Post: 12-01-2009, 05:15 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