Results 1 to 4 of 4
  1. #1
    behnam is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2014
    Posts
    72

    How to Open form and jump to certain record?

    Hi all,

    I have a form called Estimates and a variable called IDHolderDisapprove which stores an int. I want to open the form and go to the record with the ID equal to that stored in the variable. I tried the code bellow but its not working. Can someone help me, thanks.



    [code]DoCmd.OpenForm "Estimates", , , "ID = IDHolderDisapprove"[\code]

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    The variable must be outside the dbl quotes to resolve to a value.
    "ID = " & IDHolderDisapprove

  3. #3
    behnam is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2014
    Posts
    72
    This does take me to the correct record in the form, but dosent allow me to move to other records using the navagitation tool. Is there away to go to the record i want without filtering all the other records out?

  4. #4
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    It opens it filtered.
    To move about other records ,simply turn OFF the filter (the funnel icon on the toolbar)

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

Similar Threads

  1. Using a Combo Box to jump to a record
    By Access_Novice in forum Forms
    Replies: 3
    Last Post: 11-19-2013, 04:14 PM
  2. Replies: 3
    Last Post: 08-26-2012, 10:04 PM
  3. Replies: 1
    Last Post: 05-03-2012, 02:25 PM
  4. Text Box - Jump to Record
    By drow in forum Forms
    Replies: 5
    Last Post: 03-12-2012, 11:25 PM
  5. How to jump on a new record when forms open?
    By braveali in forum Programming
    Replies: 3
    Last Post: 02-21-2012, 08:17 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