Results 1 to 2 of 2
  1. #1
    IELV is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jun 2018
    Posts
    1

    Dlookup oracle tables

    Hi everybody,



    I have one problem when I try to use the function dlookup in a form with two Oracle tables vinculated:

    The expression I use is

    =DBúsq("OPL_DESCRIZIONE";"ES74_WLI_OPERATORILINEA" ;"[RP_CAPOTURNO]=[OPL_CODICE]")

    The two tables vinculated are:

    1) ES74_WLI_OPERATORILINEA with the fields: OPL_DESCRIZIONE and OPL_CODICE

    2) ES74_VW_REPORT_REPORT_PRODUZIONE with the field RP_CAPOTURNO . This table is the origin of the form.

    The field show "Error".

    What is very extrange is when I pass the mouse in the table vinculated the name of the table is diferent: ES74.WLI_OPERATORILINEA and ES74.VW_REPORT_REPORT_PRODUZIONE

    I imagine the problem is the use of Oracle tables, because with SQL Tables the function work.

    Could somebody help me?

    Thanks in advance.

    Best regards,

  2. #2
    Gicu's Avatar
    Gicu is offline VIP
    Windows 8 Access 2013
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,114
    Your dLookup doesn't look right, can you try:

    =DBúsq("OPL_DESCRIZIONE";"ES74_WLI_OPERATORILINEA" ;"[OPL_CODICE] =" & me.[RP_CAPOTURNO]) if CODICE and RP_CAPOTURNO are numbers and you have a control on the form named RP_CAPOTURNO or
    =DBúsq("OPL_DESCRIZIONE";"ES74_WLI_OPERATORILINEA" ;"[OPL_CODICE] =""" & me.[RP_CAPOTURNO] & """") if the two fields are text (using double double-quotes avoids problems with apostrophes in strings).

    Cheers,
    Vlad

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

Similar Threads

  1. Replies: 6
    Last Post: 06-09-2014, 12:13 AM
  2. Using DLOOKUP with tables only
    By Access_Novice in forum Access
    Replies: 4
    Last Post: 11-28-2013, 07:16 PM
  3. Use DLookup to get data from multiple tables
    By medady in forum Programming
    Replies: 4
    Last Post: 02-19-2013, 01:38 PM
  4. DLOOKUP two tables in query
    By sockswithsandals in forum Queries
    Replies: 3
    Last Post: 04-17-2012, 06:55 AM
  5. DLookUp Query across multiple tables
    By karldou in forum Queries
    Replies: 2
    Last Post: 12-19-2011, 02:26 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