Results 1 to 2 of 2
  1. #1
    drhowells is offline Novice
    Windows 7 Access 2010 (version 14.0)
    Join Date
    May 2010
    Posts
    1

    Access 2010, record selection not firing on click

    Hello,

    I have a Form (continuous form) which comprises a PK, a number of fields and an Image serving as a button [that has an On Click event]. The desired functionality is for the user to click the button (code below) which opens a form populated with editable data for that specific record.



    Whichever button is clicked, the Job_Code is 18. If I click directly into the record for 19, then the Job_Code is correctly 19; the issue seems to be that clicking the image does not select the record... can this be resolved?



    Event Code
    Code:
    Private Sub BTN_MAIN_EDIT_JOB_Click()
        
    DoCmd.OpenForm "MODALFORM_ED_Job", acNormal, , , , acWindowNormal, [Job_Code]
    
    End Sub
    Advice much appreciated!

  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
    I suspect you want this technique:

    http://www.baldyweb.com/wherecondition.htm

    It looks like you're putting the value in OpenArgs, which would require code in the form being opened.
    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. MS Access 2007 vs 2010
    By ralphjramirez in forum Access
    Replies: 2
    Last Post: 05-06-2010, 06:30 PM
  2. Bring up record according to list box selection
    By dlewicki in forum Programming
    Replies: 4
    Last Post: 03-01-2010, 03:54 PM
  3. Replies: 1
    Last Post: 01-30-2010, 01:47 PM
  4. Access 2010 demo on MSDN channel9
    By genesis in forum Access
    Replies: 0
    Last Post: 12-16-2009, 06:17 PM
  5. Click a record to display it for edit
    By mapl in forum Access
    Replies: 0
    Last Post: 11-24-2008, 03:02 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