Results 1 to 4 of 4
  1. #1
    fluppe is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2014
    Posts
    48

    How to get entry of a specific Edit-Box ?

    Hello,

    here is another question from a (total) beginner:

    I have a table and i use as the datasource for a Subform that is arranged as (1.) column of editboxes and (2.) a column of comboboxes.


    Each pair of those corresponds to one record in my little table.
    Now i want to automatically update something when the combobox is used, but i need the entry of the corresponding edit for that.
    How can I get that entry ?

    Is there a way to do that by addressing the editbox or should one better use the table itself ? But how can i use the table itself ? ... i do not have an index of the edited combobox or s.th..
    I am using VBA to try that, but maybe one can define a link between the controls in the access-properties or something ?

    Thanks for reading so far and a nice week everybody. I'd appreciate any help.

    Greetings,
    ...

  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,644
    By 'editbox' do you mean 'textbox'? What do you need the textbox value for?

    What do you want to automatically update?
    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
    fluppe is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2014
    Posts
    48
    i have a number and a name in that table which are corresponding "1-1". The combobox updates the "Name" and i want to update the number then to the corresponding value.
    Therefore i have to find the record in the table which is identified by the name in the "Textbox".
    That should work however, but seems to be a difficult thing i and i would really like to know what is the best way of doing this.

  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,644
    Still not sure what you are wanting. Saving number and name sounds like duplication of data. The combobox should be bound to field where you need to save number value. The number and name should be columns of combobox. http://www.datapigtechnologies.com/f...combobox3.html

    If you want to provide db for analysis, follow instructions at bottom of my post. Identify the form involved in issue.
    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. How to edit entry in table from VBA ?
    By fluppe in forum Programming
    Replies: 5
    Last Post: 07-14-2014, 08:32 AM
  2. VBA sql to edit specific information
    By Ruegen in forum Programming
    Replies: 1
    Last Post: 11-13-2013, 07:36 PM
  3. Replies: 4
    Last Post: 03-20-2013, 01:03 PM
  4. Edit record in form with original entry shown
    By erknoebe in forum Access
    Replies: 5
    Last Post: 09-29-2010, 02:33 PM
  5. Automatic Data Entry on a Specific Date
    By alanbrai in forum Programming
    Replies: 2
    Last Post: 11-14-2007, 05:15 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