Results 1 to 4 of 4
  1. #1
    UT227 is offline Expert
    Windows 7 32bit Access 2013 32bit
    Join Date
    Feb 2016
    Posts
    581

    Populate a field


    I have a form with a toggle button [tglFormLock]. When it is clicked, I want it to populate a field [cboLockedBy] with a field on another form [frmMainMenu]. I tried going to the After Update on the toggle and entered:

    cboLockedBy = forms!frmMainMenu!txtUserID

    That didn't work. I tried the On Click also. I'm guessing that my code is wrong.

  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,641
    What does "didn't work" mean exactly? Do you get an error, if so what's the description? The code is fine, though it presumes cboLockedBy is a control on the form.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    UT227 is offline Expert
    Windows 7 32bit Access 2013 32bit
    Join Date
    Feb 2016
    Posts
    581
    That was very strange. I used it to get the error, and it started working. I'm not sure what happened.

  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,641
    I have that effect on things. My users say things start working as soon as I come to their desk.
    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. Replies: 2
    Last Post: 05-17-2017, 06:17 AM
  2. Replies: 7
    Last Post: 08-19-2016, 08:16 AM
  3. Replies: 4
    Last Post: 10-17-2014, 03:31 PM
  4. Replies: 4
    Last Post: 01-30-2012, 08:32 AM
  5. Replies: 3
    Last Post: 10-03-2011, 02:33 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