Results 1 to 11 of 11
  1. #1
    manic is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2012
    Posts
    63

    open another form with same records.


    This is what Im trying to do, create a Cbo with employee names on a form and when the employee is selected all his records related to that form can be navigate on the secondary form. I tried the tutorial opening a secondary form with the same records but by God this is kicking my butt, i get all types of error, such as the table is in use by another user and stuff like that. any help on this will be appreciate it.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    Since you haven't posted what you've tried, is this what you're after?

    BaldyWeb wherecondition

    If that's what you're trying, you need to post your code if you want us to figure out what's wrong. The table in use error might happen if you were opening two forms based on the same table, and the first one was dirty (unsaved edits).
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    manic is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2012
    Posts
    63
    this is the code that i tried
    DoCmd.OpenForm "Frmoperator", , , "[EmployeeID] = " & Me.EmployeeID & ""

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    What is the result when you run that code? Error message (the exact statement), wrong results, nothing happens?

    Is the combobox multi-column and the bound column is the EmployeeID?

    If both forms are bound to the same table/query, that could definitely be an issue.
    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
    manic is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2012
    Posts
    63
    the error was that the table was in use by another user.
    now my questioin is the following, in order to avoid that should the secondary form then be bound to a query instead of directly to the table?
    please be patient with me i'm learning as i go

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    Binding to a query on the same table wouldn't matter. Has the data on the first form been edited? It sounds like Access has sensed an issue with the same data being edited twice. Can you post the db here?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  7. #7
    manic is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2012
    Posts
    63
    yes sir. here it is.
    Attached Files Attached Files

  8. #8
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    The sample does not have the code you said was giving you an error in it, so I'm not sure what you want from us.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  9. #9
    manic is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2012
    Posts
    63
    sorry wrong one.
    Attached Files Attached Files

  10. #10
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    Bad design to have two identical forms navigating the same records. Have one form and filter it. Review tutorials here http://datapigtechnologies.com/AccessMain.htm especially the one on Build a Custom Filter in Your Form in the Access Forms: Tips & Techniques section.
    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.

  11. #11
    manic is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2012
    Posts
    63
    Thanks June7 just what i needed to see. I appreciate all the help, I think i can take it from there.

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

Similar Threads

  1. Replies: 2
    Last Post: 05-26-2011, 12:15 PM
  2. open form if no records in query
    By MiaAccess in forum Forms
    Replies: 1
    Last Post: 03-05-2011, 12:11 PM
  3. Replies: 10
    Last Post: 01-10-2011, 07:52 PM
  4. Open form to filtered records
    By ducecoop in forum Access
    Replies: 3
    Last Post: 10-22-2010, 10:53 AM
  5. Replies: 2
    Last Post: 02-26-2010, 08:14 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