Results 1 to 11 of 11
  1. #1
    data808 is offline Noob
    Windows 8 Access 2007
    Join Date
    Aug 2012
    Posts
    727

    Split Form Question

    I was wondering if there was a way to click on a record in a split form that will take me to another form that shows the record I clicked on in the split form? In other words, all the records in the split form are like links and when I click on one of them, it opens up a regular form that shows that record that I clicked on. Is that possible?

  2. #2
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,849
    There is a sample here of opening a form from a record in a form (not split form).

  3. #3
    data808 is offline Noob
    Windows 8 Access 2007
    Join Date
    Aug 2012
    Posts
    727
    Is all the code in that zip file you provided? I already have a filter system on my split form to find what I'm searching for. I just need to apply the part where you can click on the record to see it in a regular dynaset form for editing. My splitform is a snapshot thats why.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    The split form DblClick event works for me.
    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
    data808 is offline Noob
    Windows 8 Access 2007
    Join Date
    Aug 2012
    Posts
    727
    Thanks June7 but how does it know which record to open in the next form? Does it just know that whatever record I double click in the datasheet of the split form, it will know to open that record in the next form that opens up? I'm confused to how it works.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    Need code in the DblClick event, like:

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

    The click must be on the record selector on left side of the form.
    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
    data808 is offline Noob
    Windows 8 Access 2007
    Join Date
    Aug 2012
    Posts
    727
    This is the code I am trying to use in the double click event of the split form called Counter Citation Number.

    DoCmd.OpenForm "Counter Log", , , "RefNum=" & Me![Ref Num]

    Right now when I am in my split form which is called Counter Citation Number, I double click in the record selector, it will have a little "Enter Parameter Value" window. I enter the reference number that I want (reference number field is my primary key) and then the Counter Log form opens but not on the record I wanted. I'm not sure if the names of the reference fields are different is what is causing it to not work but the name of the field in the split form for reference number is "Ref Num" and the name in the Counter Log form is "txtRefNum". Other than that, I do not know why this is not working. Please help.

    Update: I Just tried renaming the field name in the Counter Log form to match the name in the split form. I still get the same results. If I can get this to work that would be so cool. It would save a lot of time to pull up records to edit.

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    Cannot replicate the issue. Would have to review your db.
    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.

  9. #9
    data808 is offline Noob
    Windows 8 Access 2007
    Join Date
    Aug 2012
    Posts
    727
    Is it working the way its supposed to except for the part where its just not pulling up the record that I want? What I mean is that is the Enter Parameter Value window supposed to pop up like that? If so, what am I supposed to type in that box?

    Please explain this line of code so I know what this part is doing: "ID=" & Me!ID

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

    I know I have to obviously change the "formname" to the form that I want to open.

  10. #10
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    "ID=" & Me!ID is example of filter criteria passed to the opening form.

    Should not be a parameter popup.
    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.

  11. #11
    data808 is offline Noob
    Windows 8 Access 2007
    Join Date
    Aug 2012
    Posts
    727
    Well this sounded better than the way I decided to pull up a record but I just don't know how to get it to work. I'll just use the other way for now. Thanks for all the help June7. You are a lifesaver.

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

Similar Threads

  1. Split DB Question - Multi User Environment Launch
    By aussie92 in forum Database Design
    Replies: 6
    Last Post: 01-22-2014, 03:19 PM
  2. Replies: 10
    Last Post: 07-15-2013, 03:43 PM
  3. Get split form behaviours without using a split form
    By SyntaxSocialist in forum Queries
    Replies: 2
    Last Post: 04-12-2013, 11:56 AM
  4. Split Database Question - Will this work?
    By Jrbeene86 in forum Access
    Replies: 5
    Last Post: 08-09-2012, 06:47 PM
  5. Replies: 4
    Last Post: 11-16-2011, 04:46 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