Results 1 to 3 of 3
  1. #1
    robrien is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2013
    Posts
    1

    Opening a Form from another record

    I have followed an online tutorial to open a form from clicking on a record.



    My form is a weekly schedule that has job tasks in a subform. Using the OpenForm macro I have set it to open the job details form when you double click on the job number in the subform. I have set the where clause to the job number on the job details form.

    The macro opens the job details form but the filter does not work and returns a blank form (ie no record).

    Could someone please supply some suggestions on what may be causing the filter problem.

  2. #2
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496
    Tip. Make a button on the subform record then go through the wizard. It will make the perfect macro if you follow the wizard correctly and find it works.

    To get that macro, open the button onclick event once it is created, copy the macro (right click or click and control copy it) and then paste that macro into anything you want to do the same thing when you click on (i.e. your job number).

    Delete the button once done.

  3. #3
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    Is the Job Number a string value or a number? Strings require quote 'delimiters'.

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

Similar Threads

  1. Opening form to Appended Record
    By PPat in forum Forms
    Replies: 8
    Last Post: 04-12-2013, 03:49 PM
  2. Help with opening form to specific record
    By manic in forum Programming
    Replies: 7
    Last Post: 09-18-2012, 08:44 PM
  3. Opening a form for a particular record.
    By 86rainey in forum Forms
    Replies: 6
    Last Post: 06-24-2012, 10:14 AM
  4. opening a form with last one record.
    By cap.zadi in forum Forms
    Replies: 1
    Last Post: 01-17-2012, 12:45 AM
  5. Replies: 9
    Last Post: 09-16-2011, 03:52 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