Results 1 to 7 of 7
  1. #1
    bignate is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Aug 2013
    Posts
    47

    Question Open particular record in a form

    I have a continuous form that is based on a query. I would like to have an open button so that you can select a record on the form and that particular record opens up in a new form. How do I do this?



    If this cant be achieved would I be able to make a form open that shows a particular record based on the query and you just press next record to view the other records that are a result of the query?

    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,652
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    You should the page Paul gave you a link to, but note that to do exactly what you want to, you'll need to click on the link, at the bottom, left of that page, tagged

    But I want to have all the records still available in the second form

    Linq ;0)>

  4. #4
    bignate is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Aug 2013
    Posts
    47
    Thanks you both really helped me and I got it to work

  5. #5
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    No problem.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  6. #6
    bignate is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Aug 2013
    Posts
    47
    Hi I decided to use the first way where you only see one record. I currently make it open to a Time Reported field which will be unique for everyone. However I wanted to know if its possible to have two fields for the restriction to be based on. Just incase in the rare circumstance that two records were created at the exact same time. I wanted it be something like this:
    DoCmd.OpenForm "UpdateRecord", , , "[TimeReported] = #" & Me.TimeReportedUFO & "# " "UpdateRecord", , , "[Full Name] = '" & Me.FullNameUF & "'"

  7. #7
    bignate is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Aug 2013
    Posts
    47
    I found out that you can use


    Dim whrStr As StringwhrStr = "[TimeReported] = #" & Me.TimeReportedUFO & "# AND [Full Name] = '" & Me.FullNameUF & "'"DoCmd.OpenForm "FormName", WhereCondition:= whrStr

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

Similar Threads

  1. Replies: 2
    Last Post: 03-13-2013, 06:13 PM
  2. Replies: 3
    Last Post: 08-26-2012, 10:04 PM
  3. open form new record
    By accesshelpme in forum Access
    Replies: 3
    Last Post: 05-17-2012, 02:15 PM
  4. Replies: 1
    Last Post: 05-03-2012, 02:25 PM
  5. If record does not exist, open add new record form
    By RobertIngles in forum Programming
    Replies: 2
    Last Post: 02-01-2011, 08:47 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