Results 1 to 10 of 10
  1. #1
    Evgeny's Avatar
    Evgeny is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Apr 2010
    Posts
    85

    Stuck with combo boxes for ever !!! :(


    I have been suffering with combo boxes for a week now... and no results. I am new to access, i am picking up concepts fairly quick, but combo boxes got me completely stuck. I have attached my database, please edit rowsource and VbA for Contact and Contact Email, so Contact Email auto populates (And lets me choose any Contact for a new record rather, then displaying the same one in every record).
    I have tried everything, but seems like i am not experienced enough to get it going
    Last edited by Evgeny; 04-13-2010 at 08:46 PM. Reason: Wrong attachment

  2. #2
    Datagopherdan is offline Competent Performer
    Windows 7 Access 2007
    Join Date
    Dec 2008
    Posts
    220
    I didn't open your database but from the sounds of it, you don't have your combo box attached to a control source. For example, lets say that the record source for your form is tblNotes, which tracks all correspondences you've have with each client. You would want a field in there for the Client, we'll call it ClientID. You would then set a relationship with that field with your table that has all your client information, e.g. Name, E-Mail etc. You would set that relationship on the unique identifier in tblClients, which should be something like an Auto-Number, which we'll call ID

    Now, in your combo box on the form, set the control source to "ClientID" and you create a query that would pull from your table with all the client information. You would want the ID, Contact Name, and E-Mail. Now, set your number of columns property to 3 and set the column widths to 0,1,1. Now your combobox will be connected to that field and display the client name and email for each record.

    Dan
    Access Development
    Quote Originally Posted by Evgeny View Post
    I have been suffering with combo boxes for a week now... and no results. I am new to access, i am picking up concepts fairly quick, but combo boxes got me completely stuck. I have attached my database, please edit rowsource and VbA for Contact and Contact Email, so Contact Email auto populates (And lets me choose any Contact for a new record rather, then displaying the same one in every record).
    I have tried everything, but seems like i am not experienced enough to get it going

  3. #3
    sesproul is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Posts
    50
    Which Form are you talking about?

  4. #4
    Datagopherdan is offline Competent Performer
    Windows 7 Access 2007
    Join Date
    Dec 2008
    Posts
    220
    The form that you have your combo box on.

    Dan
    Access Development

    Quote Originally Posted by sesproul View Post
    Which Form are you talking about?

  5. #5
    Evgeny's Avatar
    Evgeny is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Apr 2010
    Posts
    85
    Datagopherdan thank you, the best simplest and best explanation i have had so far. Worked out just fine . Solved.

  6. #6
    Datagopherdan is offline Competent Performer
    Windows 7 Access 2007
    Join Date
    Dec 2008
    Posts
    220
    YW. Glad you got it worked out.

    Dan
    Access Development


    Quote Originally Posted by Evgeny View Post
    Datagopherdan thank you, the best simplest and best explanation i have had so far. Worked out just fine . Solved.

  7. #7
    Evgeny's Avatar
    Evgeny is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Apr 2010
    Posts
    85
    Decided to add ContactID to my table for relationship purposes.

  8. #8
    Evgeny's Avatar
    Evgeny is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Apr 2010
    Posts
    85
    Datagopherdan could you please look at my data-source please, it started messing around with me. kind regards, really urgent work thing

  9. #9
    Evgeny's Avatar
    Evgeny is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Apr 2010
    Posts
    85
    attached DB

  10. #10
    Evgeny's Avatar
    Evgeny is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Apr 2010
    Posts
    85
    Solved. I created combo box with record source of Name, Email. Column Count 2 (1;0). Then text box with control source = [ComboBoxName] !! Thank you for your help mate

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

Similar Threads

  1. Help with form & combo boxes
    By rnjalston in forum Forms
    Replies: 1
    Last Post: 03-17-2010, 10:38 PM
  2. combo boxes
    By thewabit in forum Forms
    Replies: 7
    Last Post: 01-01-2010, 08:51 PM
  3. combo boxes
    By googenfrog in forum Forms
    Replies: 3
    Last Post: 07-03-2009, 05:41 PM
  4. combo boxes
    By labrams in forum Forms
    Replies: 0
    Last Post: 04-20-2006, 09:28 AM
  5. Combo Boxes
    By Mxcsquared in forum Forms
    Replies: 0
    Last Post: 01-19-2006, 04:59 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