Results 1 to 4 of 4
  1. #1
    1eye1vision is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    35

    Talking Get value from other control not updating table

    Hi All.
    I have in issue with a control on my form which gets its value from another control. However when this field is updated the value is not past to the table.
    What i have at the moment in the control source is



    =[cboShip].[Column](2)

    Now this gets the data required from the control but does not pass to table.

    Any help would be appreciated.


  2. #2
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    Is your control that is getting the data bound to a field in your table? That would be the first thing I would look at.

    alan

  3. #3
    John_G is offline VIP
    Windows XP Access 2003
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    It does not put a value in the table because have not specified a table field as the control source. You have set the control source to an expression based on another control; in order to update the table you need to set the source for the control to the table field, and set it's value using VBA. My suggestion would be the After Update event of the combo box, something like this:

    me!mycontrol = [cboShip].[Column](2), where mycontrol is the name of the textbox control.

    HTH

    John

  4. #4
    1eye1vision is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    35
    Thanks John G,
    That worked a treat, i placed that in the After Update event of the control from which i was getting the Data. I then set the Control source of the control which was getting the data to the field from the table.

    Great reply

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

Similar Threads

  1. Date Picker Not Updating Bound Control
    By DanKoz in forum Forms
    Replies: 5
    Last Post: 08-18-2011, 07:07 AM
  2. Updating Default Value of a Subform Control
    By eww in forum Programming
    Replies: 4
    Last Post: 04-11-2011, 12:57 PM
  3. Replies: 0
    Last Post: 03-27-2011, 02:05 PM
  4. Replies: 6
    Last Post: 03-14-2011, 09:37 AM
  5. updating a control
    By Seven in forum Forms
    Replies: 3
    Last Post: 12-20-2009, 09:31 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