Results 1 to 3 of 3
  1. #1
    Trams is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    May 2011
    Posts
    2

    Updating text box with information from auto populated field.

    Hello all, this is my first time posting and looking for some help. I have a database that tracks productivity and a form where the team puts the data.

    In order to make it easier for them I would like to automate the process. On the form I have an unbound text box that pulls in the computer name automatically using =GetMachineName(). The computer name is also part of a separate table that includes there name and ID.

    I want the form to auto populate the Name and ID field when they open it based on this unbound field called "compname"

    This may be simple but I am drawing a blank



    Thanks

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2007
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    So this form is already bound to a table/query? You want to save the ID to a field in this RecordSource?

    You could use DLookup in the ControlSource of each textbox: DLookup("ID", "tablename", "compname='" & [machinename] & "'")

    Then to save the ID will have to use code in some event, perhaps when the form closes: Me!ID = Me.ID

  3. #3
    Trams is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    May 2011
    Posts
    2
    Thank you that worked perfectly.

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

Similar Threads

  1. Issues with Auto populated fields
    By denise1005 in forum Queries
    Replies: 3
    Last Post: 03-17-2011, 10:50 AM
  2. Auto expand memo field vertically to fit text
    By grant.smalley in forum Forms
    Replies: 1
    Last Post: 02-04-2010, 05:54 PM
  3. Replies: 1
    Last Post: 01-21-2010, 02:36 AM
  4. Auto Populated Field not Saving to Table
    By EstesExpress in forum Forms
    Replies: 4
    Last Post: 10-09-2009, 03:33 AM
  5. Access 2000 Auto Populated Fields
    By Cylena in forum Access
    Replies: 1
    Last Post: 05-18-2009, 07:50 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