Results 1 to 9 of 9
  1. #1
    graccess is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2014
    Posts
    78

    Question Open new form vs. record select

    I have a form that will be used to enter new records and edit existing ones. Presently, when I click on a filtered subform that displays my records, it loads the form containing the selected record, no problem there. But if I select the form separately to begin adding new records, it loads up either that last viewed record or the first record in my database. I can't seem to figure out where to put the code or event procedure to fix my problem to automatically determine where I'm adding a new record or intentionally adding the selected record. thanks in advance.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    How are you opening the form 'separately' for new record entry?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    graccess is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2014
    Posts
    78
    from a switchboard. another odd thing about my forms after they load from the switchboard is the queries don't function correctly after they've been loaded. when I make a selection from a combo box field within that form, nothing populates. when i launch the form separately from the form list in my navigation bar, it all works fine.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    Is this a switchboard created by the old switchboard wizard or just a form with buttons and code?

    Doubt I will be able to identify cause and fix from your narrative. This requires getting intimate with design and code.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    graccess is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2014
    Posts
    78
    This is the old switchboard wizard but i think I may have found a workaround that fits. thanks again.

  6. #6
    ipisors is offline Access Developer
    Windows XP Access 2007
    Join Date
    Sep 2013
    Posts
    119
    I recommend re-constructing the database without a switchboard, custom code the necessary events (etc). This will have much more potential as an application in the long run.

    "Presently, when I click on a filtered subform that displays my records, it loads the form containing the selected record, no problem there"
    How does it do that? You'll need to view the code that causes that to happen. Unfortunately, switchboard-generated code can be a very, very non-intuitive, and generally ugly thing to wade around in. Put on your waist-high swamp boots, gear up for a scavenger hunt, and determine in the future to move on past switchboards into custom coded forms!

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    Amen! This is why the Switchboard wizard is not available up front in 2010 (or did that happen in 2007). Finding it takes some effort.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  8. #8
    ipisors is offline Access Developer
    Windows XP Access 2007
    Join Date
    Sep 2013
    Posts
    119
    Quote Originally Posted by June7 View Post
    Amen! This is why the Switchboard wizard is not available up front in 2010 (or did that happen in 2007). Finding it takes some effort.

  9. #9
    graccess is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2014
    Posts
    78
    I see what you mean, it's very limiting.

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

Similar Threads

  1. Use combobox to select form to open
    By gemadan96 in forum Forms
    Replies: 11
    Last Post: 11-15-2012, 01:42 PM
  2. Replies: 3
    Last Post: 08-26-2012, 10:04 PM
  3. Replies: 1
    Last Post: 05-03-2012, 02:25 PM
  4. Replies: 1
    Last Post: 12-04-2011, 09:11 PM
  5. Select / DoCmd to open another form
    By chrisjack001 in forum Access
    Replies: 1
    Last Post: 08-24-2010, 12:31 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