Results 1 to 3 of 3
  1. #1
    l2extasy is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    2

    Form Field value updates

    Hello guys! This is my first post here and i'm in desperate need of assistance. I need to finish this database for my bachelor's degree, but i'm kind of slopy with Access, i'm more the database modelling only kind of guys.
    Anyway, i have these tables Clients, Orders, OrderDetails, OrdersConfirmed, OrdersConfirmedDetails Products (not going to include Sales Agent), and my issues are:
    1) how can i update the Price field in my OrderDetails, with the Price (standard listing price) already entered in the Products table?
    2) also, how can i select which fields are going to update my OrdersConfirmedDetails table by using data already stored in the Orders/OrderDetails tables ?



    Not sure if i made myself understood, but i can explain further if needed. Great thanks to any incoming help, have a nice day!

  2. #2
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    If you are talking about entering order details in a Form -> that is bound to your Order Details table -> what you could do is:
    In the 'On Change' Event of the Product ID field in the Form - put in some code that takes the Product ID from the Form and finds the Price for the matching Product ID in the Products table.

    OR . . .

    This page has a pretty good explanation / example of using the 'DLookup' function for what you are trying to do.
    http://office.microsoft.com/en-us/ac...001228825.aspx

    Let us know if you have any other questions.
    All the best!

  3. #3
    l2extasy is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    2
    I've read your post and i think this might just do the trick and if so, you're a life saver, thank you very much. I'll try this as soon as i can and reply with the results. Have a fine day!

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

Similar Threads

  1. Combo Box on form updates unintentionally
    By zipmaster07 in forum Forms
    Replies: 2
    Last Post: 03-06-2012, 10:21 PM
  2. Form no longer updates table; what'd I do?
    By SevenSignz in forum Forms
    Replies: 8
    Last Post: 03-04-2012, 12:25 PM
  3. Tracking Log of updates in a form
    By cin324 in forum Access
    Replies: 9
    Last Post: 11-30-2011, 01:12 PM
  4. Replies: 4
    Last Post: 12-01-2010, 01:12 PM
  5. Replies: 2
    Last Post: 03-29-2010, 11:52 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