Results 1 to 10 of 10
  1. #1
    AccessNewb11 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    23

    Combo Box: Help please!

    Hi all,
    This forum has been so helpful to this Access Newb, and I've learned alot, thank you!

    I am having another problem with my combo box...I made it so that it auto populates information based off of a table and it worked great. I would choose a law enforcement agency, and the information for the agency would auto populate. Then, all of a sudden, it stopped and gave me the error message in the first screen shot when I tried choosing an agency from the drop down list.

    The second screen shot shows my AfterUpdate event code. I don't see a problem with it...



    Any help would be greatly appreciated!!!
    Attached Thumbnails Attached Thumbnails Error message auto populate.png   AfterUpdate event code.png  

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,610
    I believe the error message is telling you that you have two blocks of code for the After Update event of that combo box. The second block of code is the penultimate one in your posted screen shot.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    AccessNewb11 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    23
    Ooooh YAY, thank you SO much!

  4. #4
    AccessNewb11 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    23
    I have another problem...I tested my form and this error message comes up:

    "The Microsoft Access databse engine cannot find a record in the table 'Processor' with key matching field(s) 'ProcessorID'"

    It comes up when I choose a name from a drop down list on a combo box I created. Does it have to do with the relationships?

    Thanks!

  5. #5
    AccessNewb11 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    23

    Error message with drop down box

    Hi all,
    Thank you for your help in advance!

    I have been building a form to help me register people in classes at my work. When I tested the form, I put in the person's name and in the "processor" drop down combo box, I chose a name and tried to save the form. The first screen shot shows the error message that pops up.

    I think the problem has something to do with my relationships...? I posted a second screen shot of the relationships as well. The Processor table and the Individual table are connected.

    I do not have any code written for the Processor combo box.

    The value for the RowSource property on the combo box is as follows:

    SELECT [Processor].[ProcessorID], [Processor].[Processor Name] FROM Processor ORDER BY [Processor Name];


    Thanks...
    ~AccessNewb~

    MOD EDIT: Merged threads
    Attached Thumbnails Attached Thumbnails Error message processor.png   Relationships.png  

  6. #6
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,610
    What are the following properties of the combo box:
    Control Source
    Row Source
    Column Widths
    Bound Column
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  7. #7
    AccessNewb11 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    23
    Control source is blank...hmm.

    RowSource is: SELECT [Processor].[ProcessorID], [Processor].[Processor Name] FROM Processor ORDER BY [Processor Name];

    Column Widths: 0";1"

    Bound Column: 1

  8. #8
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,610
    Try setting the Control Source to ProcessorID
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  9. #9
    AccessNewb11 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    23
    Wow, that worked, that you SO much Bob!

  10. #10
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,610
    Quote Originally Posted by AccessNewb11 View Post
    Wow, that worked, that you SO much Bob!
    Good. Glad to help
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

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

Similar Threads

  1. Replies: 3
    Last Post: 07-03-2013, 10:38 AM
  2. Replies: 1
    Last Post: 10-30-2012, 10:29 AM
  3. Replies: 2
    Last Post: 08-16-2012, 10:02 PM
  4. Replies: 4
    Last Post: 08-16-2011, 05:54 PM
  5. Replies: 5
    Last Post: 01-02-2011, 10:09 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