Results 1 to 4 of 4
  1. #1
    rwest is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2011
    Posts
    5

    button that opens form

    Hello
    I created a floods sub form in my main publications form. In this sub form I created a button that opens another from called info connected with a specific flood id. When I click on the button in the subform for a flood id #1 the right data form opens, when I click the button for a different flood id it only opens the data form for flood id #1. If this makes sense to anyone and they can help me it would be greatly appreciated.
    Also I didn't write code for this, it has an embedded macro, it opens the floods form Where "[floodid]=" & [floodid]. I don't know if I need to write code for this but if so could someone give me a hint to what it might look like.
    Thanks

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,522
    Is this what you're looking for?

    http://www.baldyweb.com/wherecondition.htm
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    rwest is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2011
    Posts
    5
    Yep I figured it out, I wasn't calling the right table.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,522
    Glad you got it sorted out.
    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. Replies: 35
    Last Post: 12-21-2011, 02:16 PM
  2. Replies: 3
    Last Post: 09-11-2011, 01:25 PM
  3. Replies: 2
    Last Post: 09-11-2011, 05:19 AM
  4. Replies: 3
    Last Post: 05-28-2011, 09:54 PM
  5. Form opens differently from control button
    By bdaniel in forum Programming
    Replies: 5
    Last Post: 12-29-2009, 12:38 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