Results 1 to 2 of 2
  1. #1
    mick3911 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Feb 2013
    Location
    Wirral, UK
    Posts
    66

    Please HELP Having problems aith an Orders DB

    Hi All,



    I am hoping that you can help me.

    I haven’t used Access to build anything for a few years so Ihave forgotten more than I knew.

    I need a DB where I can send out invoices out to people sothat they know that they need to pay for something.

    As I said, I have forgotten mare than I knew so I knew thatthat Access 2000 (from Office 2000) had an Orders template so I thought I woulduse that after modifying it and that is where I need your help.

    I have uploaded my DB to make it easier for you tounderstand/see what is going wrong. When I place an order the screen ‘jumps’after I have entered the details and try to exit the form I keep getting thefollowing message ‘You cannot add or change a record because a related recordis required in table ‘Orders”. Then I get a ‘Can’t save the record etc etc’. So,I click OK. Then go back into the form click on the order then leave the pageand it works???????

    Can someone please have a look and see where I have gonewrong and how to fix it.

    Many thanks Orders.zip

  2. #2
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Remove the sub "Order_Details_Subform_Enter". Replace it with OnCurrent:
    Code:
    Private Sub Form_Current()
    
        If Me.NewRecord Then Me!OrderDate = Date
    
    End Sub

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

Similar Threads

  1. duplicate orders
    By Jeema in forum Queries
    Replies: 7
    Last Post: 02-25-2017, 09:40 AM
  2. Replies: 2
    Last Post: 11-01-2016, 09:04 AM
  3. Rooms and orders
    By Seldek in forum Forms
    Replies: 1
    Last Post: 12-08-2012, 09:38 PM
  4. Purchase orders 2 in 1
    By jordanturner in forum Forms
    Replies: 1
    Last Post: 09-09-2010, 03:38 AM
  5. Orders & Products
    By mastromb in forum Database Design
    Replies: 4
    Last Post: 01-22-2010, 07:59 AM

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