Page 2 of 2 FirstFirst 12
Results 16 to 24 of 24
  1. #16
    mkblack is offline Novice
    Windows 2K Access 97
    Join Date
    Jul 2011
    Posts
    16

    In the screen shot, you see Text2 displays the effective date and it lets me update it. In Text8 I would like it to say Document_Date_Effective when I am editing that field.

  2. #17
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    I would expect the combo to be a field list, not a data table. Attached is a picture of the properties of my combo.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #18
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    I think your code with the data table as a source is putting a value in the textbox, not changing the field it's bound to.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  4. #19
    mkblack is offline Novice
    Windows 2K Access 97
    Join Date
    Jul 2011
    Posts
    16
    Ok,. I am done. Somehow this did not work earlier, but is working now:
    Me.text8.Value = Me.Combo0.Column(1)

    Have a great weekend!

  5. #20
    mkblack is offline Novice
    Windows 2K Access 97
    Join Date
    Jul 2011
    Posts
    16
    Thank you for your patience, again, and sorry for the sporadic messages!!!!

  6. #21
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    If you're happy then I'm happy, but that doesn't appear to do what you initially described, or I completely misunderstood what you were trying to do.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  7. #22
    mkblack is offline Novice
    Windows 2K Access 97
    Join Date
    Jul 2011
    Posts
    16
    here's the complete statement:

    Private Sub Combo0_AfterUpdate()
    Me.Text2.ControlSource = Me.Combo0.Column(1)
    Me.Text8.Value = Me.Combo0.Column(1)
    End Sub

    I might have not been clear earlier, but this does what I need it to do: when the form is on DOCUMENT_ID = 59, I want to allow the user to select from the combo which field they want to work on. Then, the two text fields will show:

    Text8: the name of the field
    Text2: the current value of the field, and would allow the user to edit it.

    both these work now, so I will start with this knowledge and incorporate this type of form into the structure I am building.

  8. #23
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    If you change the value and leave that record, are your changes still there when you go back to that record?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  9. #24
    mkblack is offline Novice
    Windows 2K Access 97
    Join Date
    Jul 2011
    Posts
    16
    Yes, the values seem to update after I hit tab, and thhey remain. Somehow the value of the combo box doesn't remain, but for now I am happy the way it is. I'll let you know if I run into unexpected issues.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 7
    Last Post: 11-24-2014, 02:11 PM
  2. Select Query > Update Query > Table Field
    By tuggleport in forum Queries
    Replies: 2
    Last Post: 08-09-2012, 07:04 AM
  3. Update query using iif and select
    By josh2009 in forum Queries
    Replies: 1
    Last Post: 04-23-2010, 11:33 PM
  4. Replies: 1
    Last Post: 06-01-2009, 04:05 PM
  5. very difficult (for me!) SELECT query
    By igorbaldacci in forum Queries
    Replies: 1
    Last Post: 12-02-2008, 03:30 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