Results 1 to 4 of 4
  1. #1
    Khalil Handal is offline Competent Performer
    Windows 10 Access 2010 32bit
    Join Date
    Jun 2016
    Posts
    246

    Find a value in a column in a table

    Hi to all,
    A text value is stored in: NTUserLogin = TempVars("UserLogin").
    I need to find if this value exists in table tblMembers in column (field) NTUserId (This field is a text field)

    I tried the following: DLookup("NTUserId", "tblMembers", Nz(NTUserLogin))



    I am having an error in the third part of the DLookup.
    Any help is really appreciated

    Khalil

  2. #2
    ranman256's Avatar
    ranman256 is online now VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,526
    try:
    DLookup("NTUserId", "tblMembers", "[NTUserId]='" & TempVars("UserLogin") & "'")

  3. #3
    Khalil Handal is offline Competent Performer
    Windows 10 Access 2010 32bit
    Join Date
    Jun 2016
    Posts
    246
    Thank you very much

  4. #4
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,821
    Quote Originally Posted by Edwin View Post
    • Insert the formula in “=IF(ISERROR(VLOOKUP(A2,$B$2:$B$1001,1,FALSE)),FAL SE,TRUE)” the formula bar.
    The question relates to Access, not Excel, no?
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Replies: 4
    Last Post: 04-07-2017, 11:46 AM
  2. Find an Exact Match in a Access Table column
    By raghavendran in forum Access
    Replies: 4
    Last Post: 10-12-2013, 11:57 AM
  3. Replies: 4
    Last Post: 09-04-2013, 06:40 AM
  4. Find last used column address using vba
    By selvakumar.arc in forum Import/Export Data
    Replies: 2
    Last Post: 05-30-2013, 08:05 AM
  5. Replies: 1
    Last Post: 01-22-2010, 03:21 AM

Tags for this Thread

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