Results 1 to 3 of 3
  1. #1
    Bronze Lounger
    Join Date
    Feb 2001
    Location
    Escondido, California, USA
    Posts
    1,458
    Thanks
    0
    Thanked 1 Time in 1 Post

    Sync w/Another Form (2003 / 2000)

    I know it must be a simple answer but when opening one form from another form, how do I force the newly opened form to go to the record beiing displayed in the "from" form?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Sync w/Another Form (2003 / 2000)

    You can filter the form being opened. If the record is identified by a number field named ID, the code could look like this:

    DoCmd.OpenForm FormName:="OtherForm", WhereCondition:="[ID] = " & Me.[ID]

    If ID is a text field, it would be:

    DoCmd.OpenForm FormName:="OtherForm", WhereCondition:="[ID] = " & Chr(34) & Me.[ID] & Chr(34)

  3. #3
    Bronze Lounger
    Join Date
    Feb 2001
    Location
    Escondido, California, USA
    Posts
    1,458
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Sync w/Another Form (2003 / 2000)

    Thanks -- It really was simple.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •