Results 1 to 4 of 4
  1. #1
    nicole.skeeters is offline Novice
    Windows Vista Access 2007
    Join Date
    Jul 2013
    Posts
    10

    Form help - field update fail

    I'm a novice at building databases, and only remember bits and pieces from a project a few years ago. I have done a lot of reading to tried and solve this on my own, but since I'm still running into issues, I'm reaching out for help. I've described my set up and issues below, but also attached screen shots for reference.



    I have four tables: tblOrder_Details, tblOrders, tblProduct_Descriptions, tblSupervisors. I have a one-to-many relationship with [tblSupervisors].[Supervisor ID] to [tblOrders].[Supervisor ID], [tblOrder_Details].[Supervisor ID] to [tblOrders].[Supervisor ID], and [tblProduct_Descriptions].[Item Number] to [tblOrders].[Item Number].

    I used the form wizard (hey, remember I'm new!) and ended up with a form in form called Order Entry. It auto pulls the supervisors on the main form and allows me to enter in orders for each supervisor; to switch to a different supervisor you'd click the next record. On my sub form are four fields: Order date (default value set to =date()), item description (combo box pulling from [tblProduct_Descriptions].[Item Description], quantity (default value 0), and total cost (calculated field of =[Quantity]*[tblProduct_Descriptions]![Cost]).

    When I go to form view of my entry form, and try to enter in a new order for a supervisor, it gives me an error saying "field cannot be updated." Once I ok that and tab through, it says "index or primary key cannot contain a null value."

    Again, I'm a novice, so play nice, but I'm about to pull out my hair with this. My ultimate goal is to be able to track orders, have each order adjust the inventory, and to be able to pull reports showing order requests per supervisors (which in turn will indicate departmental and divisional spending). I hope I've given enough information for help - or at least to a good resource to read more.
    Thanks!
    Attached Thumbnails Attached Thumbnails form detail.jpg   relationships in db.jpg  

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    How about starting with a template that is close to what you want?
    http://office.microsoft.com/en-us/te...2Dd5c9e9d136d3

  3. #3
    nicole.skeeters is offline Novice
    Windows Vista Access 2007
    Join Date
    Jul 2013
    Posts
    10
    I'll be quite honest, the thought of a template had not even crossed my mind. Thank you for the obvious suggestion! I was able to find one I think I'll be able to modify to fit my needs.

    Thanks again!
    Nicole

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Excellent! Glad we could help Nicole and welcome to the Forum!

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

Similar Threads

  1. Replies: 6
    Last Post: 04-26-2013, 10:07 AM
  2. Replies: 3
    Last Post: 09-20-2012, 11:23 AM
  3. Replies: 5
    Last Post: 09-05-2012, 06:42 PM
  4. Replies: 2
    Last Post: 04-16-2012, 12:56 PM
  5. Replies: 1
    Last Post: 03-10-2012, 07:34 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