Results 1 to 5 of 5
  1. #1
    johnv is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2019
    Posts
    10

    SUM values from a multi valued lookup field


    I have a table that I would like to be able to select multiple values in each record and have it spit out a total. Each item in the lookup is associated with a square footage and if multiple items are selected, I want it to total. From what I gather, multi valued fields are not able to be used in a calculated field due to the back-end nature of them. If you have a suggestion of another way to accomplish this without using a multi valued field, please let me know.
    Attached Thumbnails Attached Thumbnails Room Schedule.PNG   Furniture Notes.PNG  

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    Multi-value fields,
    lookups at table field level and
    calculated fields are all features of MS Access that many developers would advise you to avoid.

    As for
    If you have a suggestion of another way to accomplish this without using a multi valued field, please let me know.
    I suggest your provide readers with a clear statement of your requirement, and some sample data and desired outputs. I'm sure you'll get some constructive ideas.

  3. #3
    davegri's Avatar
    davegri is online now Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,706
    You need a mainform/subform setup. That's how you associate many objects with one object. The Police Rooms form would be the recordsource for the main form and the Furniture Notes would be recordsource for the subform.
    Each police room then could have as many furniture notes associated as necessary.
    You need to modify the furniture notes table to include an ID field to point to the proper Police Room record.

    Using this technique, you don't deal with the tables directly for any data entry chores.

  4. #4
    johnv is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2019
    Posts
    10
    Using the two images provided above. The intent is that I would like to be able to select the "features" of a room (furniture, casework) . In a separate table I have listed the square footage values of each of these "features". When these "features" are selected, I want the main table to give me a total square footage of the entire selection. So if I selected the 6x6 workstation and the 7x7 workstation, it should tell me the total square footage for this room is 131.

  5. #5
    davegri's Avatar
    davegri is online now Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,706
    Post your DB with the 2 tables and someone can quickly create the form/subform setup and zip it back to you.

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

Similar Threads

  1. Replies: 4
    Last Post: 06-12-2018, 06:22 AM
  2. join two tables on multi-valued field
    By smudger in forum Queries
    Replies: 3
    Last Post: 06-17-2012, 03:12 AM
  3. Replies: 5
    Last Post: 12-18-2011, 09:12 PM
  4. Multi Valued field sort
    By bugman61 in forum Reports
    Replies: 2
    Last Post: 08-06-2011, 11:45 AM
  5. Append Query - Multi-Valued Field
    By catat in forum Queries
    Replies: 0
    Last Post: 05-11-2010, 01:52 PM

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