Results 1 to 2 of 2
  1. #1
    mattmurdock is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2012
    Posts
    11

    Have a form look up field when creating a record

    Sorry that this might be hard to explain but here it goes.

    I have a form (attached) that the user can insert the Name,Description, PIN #; select a Can Size and multiple Upcharges.
    The form creates the record into table DNP.
    The query "Items Form" takes DNP records and (will eventually) create total and discounted prices, etc.



    Price is determined by Can Size as seen in the Can_Size table and SizePrice query. What I need is for when the user creates the record, the Price goes to DNP table AND/OR just the "Items Form". Price can not be on the form like it is for Can Size and Upcharges (yes I know its in the Can Size combo). I'm pretty stuck.

    Any directions or guidance would be greatly appreciated- Thank you!
    Attached Files Attached Files

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Use VBA code to save the price to NDP table Price field:

    Me!Price = Me.Combo113.Column(1)

    Note that column index begins with 0. So since the price is in second column the index is 1.

    The trick is figuring out what event to put the code in. In this case I think the combobox AfterUpdate will serve.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 12
    Last Post: 12-01-2011, 10:28 AM
  2. Creating unique record from record and field data
    By arthurpenske in forum Access
    Replies: 3
    Last Post: 08-24-2011, 06:11 PM
  3. Replies: 5
    Last Post: 07-18-2011, 12:18 PM
  4. Creating headings when a field changes in a form
    By martinbanks in forum Access
    Replies: 1
    Last Post: 11-08-2010, 12:17 PM
  5. Replies: 3
    Last Post: 01-14-2010, 08:32 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