Results 1 to 2 of 2
  1. #1
    megatronixs is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Jul 2015
    Posts
    91

    pass the value from a query to a field

    Hi all,



    I have a query that when it runs, it returns the full name from the GetUserName() function. In the query there are 2 fields in use [Login] and [Name]. both come from the table "tbl_Users". I use "GetUserName()" as the criteria. The query works great. Now I would like to use this in a VBA module to get the value of the full name and get it into a field instead of the regular user name from the login.

    How can I do this?

    Greetings.

  2. #2
    megatronixs is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Jul 2015
    Posts
    91
    Hi all,

    I got it solved:
    Code:
    Name = DLookUp("fieldname", "queryname")
    Greetings.

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

Similar Threads

  1. Replies: 5
    Last Post: 04-27-2015, 02:40 PM
  2. Replies: 7
    Last Post: 03-11-2015, 12:48 PM
  3. Pass recordset field into function
    By Ruegen in forum Programming
    Replies: 6
    Last Post: 04-13-2014, 11:04 PM
  4. Replies: 4
    Last Post: 07-27-2011, 09:52 AM
  5. Pass Variable to Table Field with VBA
    By dgj32784 in forum Programming
    Replies: 3
    Last Post: 03-28-2011, 09:36 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