Results 1 to 4 of 4
  1. #1
    owenik is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Sep 2011
    Posts
    2

    Unhappy Assigning grouped attributes to a record

    Hello everybody!



    I'm a beginner in Access, and I have a problem.

    I'm creating a database of companies. Every company has at least one field of services they provide.
    There are three main groups which contain all the services (Let's say I have three tables).

    What I need is to have a form/table (query?) where I can assign to a company any number of services from any group.
    Is it possible to do it in a form where I could simply add a service by choosing a group first and then a proper service, and then add more in the same way?

    I don't know if I explained it precisely enough, but I will be very grateful for any response.

    Thank you in advance!

  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,929
    Of course is possible. How depends on data structure. Sounds like a many-to-many relationship. Three tables would be required, like:

    tblCompanies
    CompanyID (primary key)
    CompanyName

    tblServices (all services for all groups in one table)
    ServiceID (primary key)
    ServiceName
    ServiceGroupCategory

    tblCompanyServices
    CompanyID (foreign key)
    ServiceID (foreign key)
    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.

  3. #3
    owenik is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Sep 2011
    Posts
    2
    Thank you for help!

    So I have the tables made in a similar way.
    Now, how exactly can I create a form to be able to assign a service to a company by choosing a group first and then one of the services included in the group? And after that to be able to add some more services that the company provides?

    How could I make that work?

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Simplest way is a form with two multi-column comboboxes. Choose company from one combobox, choose service from other combobox. Check this tutorial http://datapigtechnologies.com/flash...combobox3.html

    There are other tutorials at that site you may find of interest http://datapigtechnologies.com/AccessMain.htm
    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. assigning a variable
    By crowegreg in forum Programming
    Replies: 1
    Last Post: 08-22-2011, 05:55 PM
  2. Assigning value to an image
    By cdzajp in forum Forms
    Replies: 1
    Last Post: 06-16-2011, 12:05 PM
  3. attributes out of order
    By Dornenhexe in forum Queries
    Replies: 9
    Last Post: 07-12-2010, 02:36 PM
  4. Hidden Attributes
    By NMJones in forum Access
    Replies: 1
    Last Post: 02-09-2010, 10:57 AM
  5. Macro to set rich text attributes?
    By EER in forum Programming
    Replies: 0
    Last Post: 03-04-2009, 09:25 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