Results 1 to 6 of 6
  1. #1
    pbuecken is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2012
    Posts
    6

    Open report from data entry form

    I have a form where the user enters data. When he is finished entering the data i want the user to press a button that stores the record and opens the report nonpaying the just entered record. I was looking at the Docmd.Openreport command but are unsure how to get the where condition sorted?



    I am fairly new in access 2010.

    Appreciate any help.

  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,521
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    ss2020 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2011
    Location
    Southern California
    Posts
    7
    I have a question along this same line. This part works fine, but sometimes in the 2nd form there is no corresponding record and the form is blank and dead when it comes up. I would like it to look at the 2nd form and if the record does not exist create one. I have been reading but can't find out how this is done.

  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,521
    For a report you can just use the no data event. For a form, you can test using a DCount with the same criteria. If > 0, open with the wherecondition, otherwise open to a new record.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    pbuecken is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2012
    Posts
    6

    Thanks

    Thanks pbaldy that did the trick.

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Happy to help!
    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. To open a form, sub form if text box entry exist in Query
    By george.vniekerk in forum Programming
    Replies: 2
    Last Post: 08-08-2011, 12:50 AM
  2. Sub Form Data Entry
    By OldBloke in forum Forms
    Replies: 1
    Last Post: 08-09-2010, 06:58 AM
  3. No entry on open form
    By grant.smalley in forum Forms
    Replies: 4
    Last Post: 01-07-2010, 01:23 AM
  4. Replies: 4
    Last Post: 03-24-2009, 09:07 PM
  5. Run report or sub form during data entry
    By wasim_sono in forum Programming
    Replies: 0
    Last Post: 03-09-2006, 05:40 AM

Tags for this Thread

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