Results 1 to 4 of 4
  1. #1
    slimjen is offline Expert
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    727

    afterupdate data disappears from form

    All I am using ver 2010. I have a form based on a table. To add new records; I use a combo box so the users can choose the cust_id. The combo box has the cust_id, custname and accessid. I want after the cust_id is choosen from the combo box to autopopulate the fields in the table cust_id, custname and assessed. It does this but disappears from the form but when I go to the table; it's there. When I go back to the form; it's also there after the record loses focus and return to that record. Users need to complete the form before the record loses focus. What am I doing wrong? I've done this task before without incident. The only difference is I took over this database but I created the form. The following is the code I'm using:



    Code:
    Private Sub cboClientID_AfterUpdate()
    Me.Client_No.Value = Me.cboClientID.Column(0)
    Me.Client_Name.Value = Me.cboClientID.Column(2)
    End Sub
    Can you tell me what I'm doing wrong? I know it's something simple.
    Last edited by slimjen; 03-22-2016 at 07:51 AM. Reason: code

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    are all these boxes bound to a field? If not, they will disappear.

  3. #3
    slimjen is offline Expert
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    727
    All boxes on form are bound except the cbo. It appears after I move off the record and come back and it's appends to the table right away. weird.

  4. #4
    slimjen is offline Expert
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    727
    Still need assistance. I have test my form and realize that if I select from the dropdown; it auto populates like I need. but if I type in the combo box; it doesn't. Why is this and what do I change? Please help

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

Similar Threads

  1. Replies: 1
    Last Post: 07-29-2014, 04:58 PM
  2. Replies: 1
    Last Post: 12-03-2012, 02:45 PM
  3. Replies: 2
    Last Post: 10-31-2012, 07:52 PM
  4. Replies: 5
    Last Post: 02-05-2012, 07:58 PM
  5. Data disappears on form once saved
    By becks in forum Forms
    Replies: 1
    Last Post: 11-27-2011, 09:04 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