Results 1 to 6 of 6
  1. #1
    CEV is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Mar 2011
    Posts
    7

    Button to open form and find specific data to display

    I have a form with several fields on it from the Employee table, one of which is EmployeeNumber. I am trying to create a button via the Command Button Wizard. This button will open another form (Training) with several fields, one of which is EmployeeNumber, on it from the Training table. Both tables have EmployeeNumber field and are linked together via this field. In the wizard I select "Open the form and find specific data to display". I do this because I want to display the employee training info for the employee that is displayed on the first form. I click on next and your supposed to select the matching fields from the two forms. The frmEmployees is showing no fields listed and the frmTraining is showing all the fields on that form as it should.

    I cannot figure out why the fields are not showing up in the Command Button Wizard for the frmEmployees.

    If you can let me know why and how to fix this, I would greatly appreciate it.

    Thanks

  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,521
    Not sure why the wizard isn't showing the fields, but this is the type of code it would produce:

    BaldyWeb wherecondition
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    CEV is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Mar 2011
    Posts
    7
    Have not ever done anything by manually entering code. Not sure of the exact steps for that.

    A couple of things to note, and not sure if it makes a difference or not. But the database was originally created in Access 2003. I opened a copy of it on another computer using Access 2003 and I am able to create the button as the fields are showing up like they should. I also opened it with Access 2007 on that computer to see if it was a specific computer issue. 2007 did the same thing with not showing the fields available in the Command Button Wizard. Any ideals? Oh, and the other computer is running WinXP.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Here's how to enter the code:

    http://www.baldyweb.com/FirstVBA.htm
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    CEV is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Mar 2011
    Posts
    7
    Thank You very much!!!! I will give this a try.

  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,521
    No problem, and welcome to the site by the way!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Button to open on specific Data
    By glasgowlad1999 in forum Access
    Replies: 6
    Last Post: 05-15-2011, 03:46 PM
  2. Replies: 1
    Last Post: 04-11-2010, 04:05 AM
  3. Replies: 3
    Last Post: 01-14-2010, 08:32 AM
  4. find specific data
    By hoachen in forum Queries
    Replies: 3
    Last Post: 08-19-2009, 08:54 AM
  5. Open to specific form
    By ecpike in forum Forms
    Replies: 2
    Last Post: 06-12-2009, 08:32 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