Results 1 to 4 of 4
  1. #1
    iDeals is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Sep 2015
    Posts
    22

    DLookup - Headscratcher (Circular Reference)

    Okay, so I have the following subform (fsubExpense) setup as follows:

    Source Object: fsubExpense
    Link Master Field: ProjectID
    Link Child Field: fkProjExpProjID

    Form Properties:

    Record Source: tblExpenses

    txt box control Source:
    Code:
    =DLookUp([WE Record],"FeeStructure","fkFeeOriginatorID=" & [Forms]![frmProjects]![fkProjOriginatorID])
    DLookup is giving a circular reference. Ideas? Need more info?

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    For starters, all 3 arguments are strings (need to be in quotes).
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    iDeals is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Sep 2015
    Posts
    22
    LOL I promise I tried it both ways... where is the emoji hitting their head against the wall when you need it. The quotes fixed it. DOH

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Happy to help!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 7
    Last Post: 10-16-2015, 12:06 PM
  2. Circular reference in calculated query
    By aquaticjewel in forum Queries
    Replies: 4
    Last Post: 03-11-2015, 08:33 AM
  3. circular reference cause by query
    By mike02 in forum Queries
    Replies: 4
    Last Post: 08-21-2013, 02:01 PM
  4. Circular reference caused by
    By rncarterjm in forum Queries
    Replies: 1
    Last Post: 04-02-2013, 08:59 PM
  5. Expression builder error, circular reference
    By cowboy in forum Programming
    Replies: 3
    Last Post: 07-15-2010, 12:55 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