Results 1 to 4 of 4
  1. #1
    west is offline Novice
    Windows 7 Access 2007
    Join Date
    Feb 2010
    Posts
    4

    Pop-up form not showing current record

    I have a demographic (tblMain) table with this fields:


    - CaseID – AutoNumber
    - Name – Text
    - Address – Text
    - Phone – Text
    - NotesID – Number (Linked to tblNotes.NotesID)


    In another table (tblNotes), I have:
    - NotesID – AutoNumber
    - Notes – Memo


    In the Main Form I placed a control button (cmdNotes) to open a pop-up
    form in wich user can write the notes.


    The pop-up Notes Form has:
    - tblMain_NotesID
    - tblNotes_Notes


    The embeded macro code produced by the (cmdNotes) button control wizard:
    Action:
    - OpenForm

    Action Arguments:
    - Form Name – Form Notes
    - View – Form
    - Filter Name -
    - Where -
    - Data Mode -
    - Window Mode – Normal

    The problem: Every time I click the (cmdNotes) control button the pop-up
    form goes to the notes of the first record. What I'd like it to do is to go
    to the notes of the current record.


    Any thaughts?

  2. #2
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    One way:

    BaldyWeb wherecondition

    You can use the Where argument of your macro if you want to stay with that.

  3. #3
    west is offline Novice
    Windows 7 Access 2007
    Join Date
    Feb 2010
    Posts
    4
    Thanks a lot!

    It took a little time but finally I got it working. This is a very good
    piece of coding.

    -JC

  4. #4
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Excellent, glad it helped you.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Open form to current record
    By rbpd5015 in forum Access
    Replies: 1
    Last Post: 08-28-2009, 01:53 AM
  2. Replies: 3
    Last Post: 06-27-2009, 03:53 PM
  3. Replies: 3
    Last Post: 02-13-2008, 09:55 AM
  4. Mailmerge Current Record...
    By oakleyp2 in forum Programming
    Replies: 0
    Last Post: 02-22-2006, 08:08 AM
  5. How to output only current record in query
    By mslieder in forum Access
    Replies: 0
    Last Post: 01-20-2006, 05:48 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