Results 1 to 2 of 2
  1. #1
    Paranap is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    30

    Getting a combo box to display a default value related to another table/module


    I have a combo box linked to the table tbloperativetraining with the selections limited to the names in the table tbloperative. What I want is the default value to be the name of the operative who is using the comupter. I have a module which gives me the username of the person using the computer as a varible getusername so what I'd like to say is the default value =
    Code:
    [firstname] & " " & [surname] where [tbloperative].[username] = getusername(
    but this doesn't work.
    Not sure if its just the syntax or what im asking can't be done but any help would be appreciated.

    Neil

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    You're missing the last close paren at the end.
    IF your function is there, and public, and returns the correct answer.

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

Similar Threads

  1. Replies: 8
    Last Post: 06-26-2014, 08:52 AM
  2. Replies: 4
    Last Post: 04-21-2014, 01:18 PM
  3. Replies: 8
    Last Post: 09-08-2013, 12:34 AM
  4. Replies: 7
    Last Post: 06-25-2013, 07:55 PM
  5. Replies: 25
    Last Post: 03-19-2013, 10:08 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