Results 1 to 4 of 4
  1. #1
    McArthurGDM is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    215

    Edit DLookup Value?

    I have a form that uses a DLookUp function as it's control source.

    I can not edit the value that displays in the Text box. I suppose this makes sense, but how can I make it so that I CAN edit the value that displays from the DLookUp function?

    Thanks,

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    If the value is coming from a combo box selection, this would be more efficient:

    BaldyWeb - Autofill

    If not, you can use the second method with your DLookkup(), in the appropriate event.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    McArthurGDM is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    215
    I'm not really sure why this worked, but

    I ended up creating a text box whose control source was the DLookUp function. Then, in the After_Update function and using Me.Refresh, I set another text box equal to that value - so it generated that value. I can somehow edit that value and use VBA again to update the value should I make any changes.

    If that made any sense.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Glad you got it sorted. That's basically what my second suggestion was.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Help Edit MS Eccess
    By viet41 in forum Access
    Replies: 25
    Last Post: 04-25-2015, 06:28 PM
  2. Replies: 1
    Last Post: 05-31-2013, 08:53 AM
  3. Replies: 2
    Last Post: 01-04-2013, 09:04 PM
  4. how to edit listboxes?
    By RedGoneWILD in forum Programming
    Replies: 2
    Last Post: 08-23-2010, 11:53 AM
  5. Cannot not edit form
    By stingray_69 in forum Forms
    Replies: 3
    Last Post: 03-18-2010, 10:49 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