Results 1 to 7 of 7
  1. #1
    ScottXe is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Aug 2012
    Posts
    25

    Search form

    I am working on a Search Form. Firstly I built a search query and built a search form with data sheet layout. They work correctly. I am struggling to add a feature that when I click a record, it should pop up a new form displaying the detail of that record. Can someone give me guidance how to add this feature.


  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,620
    Not all the record info is shown on the datasheet form? Have you considered the Split Form design?

    Or is this 'detail' data from a related child table? Then have you considered form/subform arrangement?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    ScottXe is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Aug 2012
    Posts
    25
    No all the record info appears on the data sheet form. However, the users prefer to view/edit a record in Tabular form.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,620
    If the Split form is not acceptable, then use code like:

    DoCmd.OpenForm "formname", , , "ID=" & Me.ID

    The trick is figuring out what event to put the code in. Could be a button Click event.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    ScottXe is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Aug 2012
    Posts
    25
    I tried the code in click event. After I clicked the row, it showed up there was compilation error highlighting Me.ID. Any possible mis-match?

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,620
    Maybe, I don't know your form or field or control names so my example is generic. Use your actual names.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    ScottXe is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Aug 2012
    Posts
    25
    Thanks June7!

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

Similar Threads

  1. Replies: 7
    Last Post: 08-08-2012, 03:28 PM
  2. Replies: 5
    Last Post: 07-13-2012, 01:15 AM
  3. Replies: 1
    Last Post: 04-20-2012, 03:16 AM
  4. Replies: 12
    Last Post: 03-22-2012, 02:48 AM
  5. Replies: 9
    Last Post: 02-15-2011, 03:05 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