+ Reply to Thread
Results 1 to 2 of 2

DLookUp and Concatenation

  1. #1
    Registered User
    Join Date
    06-24-2013
    Location
    SC
    MS-Off Ver
    Excel 2010
    Posts
    26

    DLookUp and Concatenation

    I'm fairly new to access and trying to convert some of my formulas I use in excel to access.

    I currently have a list of names with their pay grade. I am trying to take the pay grade and look up the actual amount of money they make during overtime.

    I currently have a query concatenating the grade and step for each employee. What I now need to create is the dlookup to take that concatenation from the first query and go to look it up in another table and pull the dollar amount over.

    However, the query with the dlookup is not recognizing the column with the concatenation. I tried to create the formula for the dlookup in the same query as the query I create the concatenation but it would not work. I also tried to set it in a query by its self and it did not work there either. Is it possible to have in the same query perform the concatenation and the dlookup look at that column and pull the information over? Is there a reason why it would not recognize the column with the concatenation formula?

    This is my concatenation formula:
    Please Login or Register  to view this content.
    This is my dlookup formula... The OT Info is generated by the concatenation formula.

    Please Login or Register  to view this content.
    I get the error "Microsoft access cannot find the name 'OT Info' you entered in the expression'


    Any assistance/advice is greatly appreciated.

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,177

    Re: DLookUp and Concatenation

    DO NOT use DLookUp in a query.
    DLookUp is usu in a form to get 1 bit of info.

    If you are using a query, JOIN to the table ("tbl_pay_scale") that has the info from the main table field "[OT INFO]"

    (plus your example MUST use strings as the criteria: DLookUp("[OT RATE]","tbl_pay_scale","[OT INFO]='G/S'")
    but not in a query.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] DLookup on Datasheet form
    By pjwhitfield in forum Access Tables & Databases
    Replies: 1
    Last Post: 01-22-2015, 11:39 AM
  2. [SOLVED] DLookUp function
    By rmachbitz in forum Access Tables & Databases
    Replies: 4
    Last Post: 07-02-2013, 06:30 PM
  3. Combining IIF and DLOOKUP
    By snoproladd in forum Access Tables & Databases
    Replies: 5
    Last Post: 04-11-2012, 01:15 PM
  4. help with dlookup
    By enhydra in forum Access Programming / VBA / Macros
    Replies: 8
    Last Post: 06-07-2011, 05:35 PM
  5. DLOOKUP AND VLOOKUP IN VBA
    By Souris in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-17-2005, 12:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1