how to use "multiple-items" form in continious view, click a row to open edit indivdu

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • prashant862000
    New Member
    • Feb 2014
    • 2

    how to use "multiple-items" form in continious view, click a row to open edit indivdu

    Hi,

    I have an access database, i used multiple-item continious view form. I need the ability to click a particular record in this view to open a individual record edit form window.
  • jimatqsi
    Moderator Top Contributor
    • Oct 2006
    • 1288

    #2
    Make a new form that edits one record. Then in your original, continuous view form, add a button to click, or use the click event on some object already on the detail line. In the click even of the button or other object, use docmd.openform to open the edit form you made. Use the where criterion on the openform command to tell the form which record it will be editing.

    Jim

    Comment

    • mcupito
      Contributor
      • Aug 2013
      • 294

      #3
      Code:
          Dim stDocName As String
          Dim stLinkCriteria As String
      
          stDocName = "YourFormToEdit"
          
          stLinkCriteria = "[TheFieldYouWantToLinkTo]=" & Me![FieldYouWantToLinkFrom]
          DoCmd.OpenForm stDocName, , , stLinkCriteria
      On the [Event Procedure] OnClick of a button, here is some sample code. Hope this helps.

      Comment

      • prashant862000
        New Member
        • Feb 2014
        • 2

        #4
        @mcupito yes, this perfectly helped me! Thanks :)

        Comment

        • mcupito
          Contributor
          • Aug 2013
          • 294

          #5
          Great! Glad I could help.

          Comment

          Working...