Results 1 to 3 of 3
  1. #1
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383

    Open Form and Link To Specific Record

    I want to go to record 3 HelpKey 3 or HelpTie 3 they are the same. HelpKey is a counter, HelpTie is a number.


    Descrition in tblRef field is OrderDetails Customer



    Ok, I am close now but cant get to the specific record I want.It opens the form but goes to wrong record.
    On Error GoTo Err_Command55_Click
    Dim strFormName As String
    Dim strCriteria As String

    strFormName = "tblHelp"
    strCriteria = "[tblRef].Value =(3)" 'I need to go to HelpKey or (HelpTie which is a number)which is a counter with the value of 3,i.e. record 3
    DoCmd.OpenForm strFormName, acNormal, , strCriteria

    Exit_Command55_Click:
    Exit Sub

    Err_Command55_Click:
    MsgBox Err.Description
    Resume Exit_Command55_Click









    The name of the form I am trying to link back to is frmHelp

    Main form is named OrderDetails


    Can I do this?
    Last edited by burrina; 12-17-2012 at 10:52 PM. Reason: Close but not yet

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Please describe exactly.
    Combobox has a rowsource and it wouldn't be CustomerID - at least not as I understand things.
    Your rowsource would be a table/query or value list.

    see if this helps
    http://msdn.microsoft.com/en-us/libr...ice.10%29.aspx

  3. #3
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    PROBLEM SOLVED:


    On Error GoTo Err_Command55_Click
    Dim strFormName As String
    Dim strCriteria As String

    DoCmd.OpenForm "tblHelp" 'Opens Help Form and Goes To Corresponding Record.
    DoCmd.GoToRecord , , acGoTo, 2
    Exit_Command55_Click:
    Exit Sub

    Err_Command55_Click:
    MsgBox Err.Description
    Resume Exit_Command55_Click

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

Similar Threads

  1. Replies: 6
    Last Post: 11-13-2012, 04:29 PM
  2. Open form on specific record
    By iky123 in forum Forms
    Replies: 1
    Last Post: 04-11-2012, 09:56 AM
  3. Open form to specific record
    By Two Gun in forum Forms
    Replies: 7
    Last Post: 11-09-2011, 10:00 AM
  4. Open form to a specific record from a query
    By chris.williams in forum Forms
    Replies: 11
    Last Post: 10-06-2011, 04:15 PM
  5. Open Form to Specific Record
    By batowl in forum Forms
    Replies: 1
    Last Post: 04-08-2011, 10:10 AM

Tags for this Thread

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