Results 1 to 4 of 4
  1. #1
    whojstall11 is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Sep 2011
    Posts
    57

    Multiple Value Combobox

    I have a Multiple Value Combobox that I have linked to one of my forms and I am trying to write some vba code that will allow on update, "if a certain item is clicked open up a different form". All i am having trouble with is referencing an item in the
    Code:
    If Me.Software.Column(1) = "Lawson Prod" Then combobox DoCmd.OpenForm "Lawson_Roles_Groups_frm", acNormal, , "EmployeeID = '" & Me.EmployeeID & "'"
    
    Else
    MsgBox ("It worked")
    End If
    End Sub
    This code gave me no error but it wont read that "Lawson Prod" is selected. Can anybody help?
    Click image for larger version. 

Name:	Multiple value combobox3.JPG 
Views:	6 
Size:	27.0 KB 
ID:	14077Click image for larger version. 

Name:	Formaccess.jpg 
Views:	6 
Size:	28.5 KB 
ID:	14076 here are screenshots of my combobox and form.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    That's because you are using multi-value field. I NEVER use multi-value field because of the complications in referencing data.
    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
    whojstall11 is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Sep 2011
    Posts
    57
    So what is an alternative way store multiple values into a record.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Multi-value field is a non-normalized data structure. Normalization would call for a dependent table to hold record for each selected item and use subform for data entry.
    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. Multiple combobox to filter subform
    By huongdl1987 in forum Forms
    Replies: 4
    Last Post: 07-24-2012, 11:43 AM
  2. Replies: 1
    Last Post: 06-25-2012, 02:15 PM
  3. ComboBox not listing multiple columns
    By tylerg11 in forum Forms
    Replies: 3
    Last Post: 09-26-2011, 11:24 AM
  4. Replies: 5
    Last Post: 07-04-2011, 10:11 AM
  5. ComboBox with multiple columns
    By rkm360 in forum Forms
    Replies: 10
    Last Post: 05-14-2010, 01:19 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