Results 1 to 4 of 4
  1. #1
    float is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2010
    Posts
    6

    Code in combobox, code in text box

    Hello everyone,



    I've been searching the past few hours on the internet for the following problem, but haven't been able to find an adequat solution for it

    The problem:
    I have a table with codes and the full text for the responding code. For example: 1000 is test1

    I've made a form were the user can select/type the code but I'm not able to 'convert' the code in to text in the text box next to the combobox. To be clear: I don't want the text in the combobox :-)

    Thank you for helping me out a bit!

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    There are a half dozen solutions to this. Have you tried a DLookup() in the AfterUpdate event of the TextBox?

  3. #3
    float is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2010
    Posts
    6
    =[comboboxname].[column](2) did the trick, my problem is solved

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Excellent! Don't forget to mark this thread as Solved.

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

Similar Threads

  1. Saving Module Code to Text Files
    By ioMatt in forum Modules
    Replies: 2
    Last Post: 07-02-2011, 08:18 AM
  2. Replies: 20
    Last Post: 09-18-2010, 02:31 PM
  3. Access 2003 code vs Access 2007 Code
    By ralphjramirez in forum Access
    Replies: 5
    Last Post: 11-23-2009, 12:33 PM
  4. Replies: 1
    Last Post: 03-18-2009, 12:30 AM
  5. Selecting text - ComboBox
    By Numbat in forum Programming
    Replies: 2
    Last Post: 06-05-2006, 05:42 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