Results 1 to 2 of 2
  1. #1
    Gilgamesh is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2012
    Posts
    5

    Auto select value: form

    Hi:



    Im making a new database in order to save time when we receive a new work order at my job. I dont have much Access experience but I've been able to create a database to do it, unfortunately there's no way for me to insert a field in the form in such a way that the "Email" field is automatically filled when the "Requester ID" is selected.

    Hope you can help me with this problem and thank you in advance.

    PS: See enclosed DBxxx.accdb

  2. #2
    John_G is offline VIP
    Windows XP Access 2003
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    Hi -

    I don't have A2010 so I can't see your database, but one option is to use dlookup in the After_Update event of the "Requester ID", somthing like this:

    me!EMail = nz(DLookup("EMail_Address","Requestor_Table","Requester_ID = " & me![Requester id]),"N/A")

    replacing the italics with the actual names of your table and fields.

    I used the Nz function to insert N/A in the field if there is no E-Mail address.

    HTH

    John

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

Similar Threads

  1. Replies: 63
    Last Post: 01-25-2013, 05:20 AM
  2. Replies: 3
    Last Post: 10-23-2012, 09:04 AM
  3. Replies: 1
    Last Post: 12-04-2011, 09:11 PM
  4. Replies: 3
    Last Post: 11-04-2011, 01:50 PM
  5. When I select name code appear auto
    By miziri in forum Forms
    Replies: 0
    Last Post: 03-09-2010, 02:10 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