Results 1 to 2 of 2
  1. #1
    UserX is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jun 2014
    Posts
    30

    Dlookup works fine on form, but not on report

    First, I am aware that dlookup is not the most effecient method to my approach, but it's what I know.

    Second, my goal is to be able to have access print out the form as if I were printing a document from Word, with the information called from the dlookup function.



    My problem:

    I can't seem to figure out why all the dlookup codes work fine on frmNew_Form7C_review, but not all work on rptForm7C. If this matters, the report was created by saving the form as a report, and then adjusting to be able to print on one page.
    Attached Files Attached Files

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    The expressions reference: Form![cboAppID]

    That is not valid syntax. I don't see how the form can work.

    Try:
    =DLookUp("[Alt_POC]", "Form7C", "[AppID] = " & [cboAppID])

    I can't open the two forms. Get error message: The form name 'frmLogoutTime' is misspelled or refers to a form that doesn't exist.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 6
    Last Post: 10-15-2014, 02:45 PM
  2. Replies: 7
    Last Post: 06-10-2013, 12:40 PM
  3. Replies: 1
    Last Post: 05-25-2013, 11:19 AM
  4. Query runs fine but report doesnt work
    By endri81 in forum Queries
    Replies: 4
    Last Post: 04-28-2012, 02:35 PM
  5. Replies: 3
    Last Post: 01-15-2012, 02:46 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