Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    Join Date
    Mar 2013
    Posts
    27
    I used the On Open code and that worked beautifully.
    I ended up changing a little bit of the syntax of the code to make it like this:
    DoCmd.OpenForm “Purchase Orders”, , , "PurchaseOrderID =" & Me.PurchaseOrderID , , , "Any text"

    And it WORKS!!!!



    I cannot thank you enough! You have been very helpful and patient with me!

  2. #17
    Join Date
    Mar 2013
    Posts
    27
    Ok Bob, One last question.

    I didn't realize it until now, but when I used the "On Open" code:
    If IsNull(Me.OpenArgs) Then
    DoCmd.GoToRecord , , acNewRec
    End If

    It stopped opening to a New Purchase Order. When I open the database that form opens but it doesn't open to a New Purchase Order anymore, it opens to the first Purchase Order. I imagine a slight change in that code would work.

    Any Ideas?

    Ok, sorry for this but I just realized that when I first open the database, the Security Warning Certain content in the database has been disabled thing is causing this problem. As soon as I click on the "Options" button and "Enable this content" it DOES change it to a New Purchase Order. But before I do this it is open to the First Purchase Order. So, with this new update I don't see it as important as before.
    Last edited by johnjmcnaughton; 04-15-2013 at 08:13 AM. Reason: Found new information

  3. #18
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,610
    Perhaps you only need this line of code in the On Open event:
    DoCmd.GoToRecord , , acNewRec
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  4. #19
    Join Date
    Mar 2013
    Posts
    27
    Well, I tried that and it stopped working on the other end (when double clicked in other form). So I think it is something I can live with.

    Thanks again!

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 12
    Last Post: 08-21-2012, 02:40 PM
  2. Replies: 5
    Last Post: 07-19-2011, 11:56 AM
  3. Replies: 0
    Last Post: 07-16-2010, 09:06 AM
  4. Replies: 2
    Last Post: 06-20-2010, 06:54 PM
  5. Replies: 0
    Last Post: 12-16-2009, 09:28 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