Results 1 to 2 of 2
  1. #1
    Den18 is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Apr 2017
    Posts
    1

    How to get cell information out of a selected row of a form and put that in a textbox on a report?

    Hello guys,

    I'm trying to make some work a lot easier by building an Access database.
    This is the first time i'm making something in Access so it's not all very clear.

    My plan is to eventually work with one main form that gives me access to all the things I need.
    In 1 form I have all the projects that still need to be worked on. This is sorted out by a query.

    In that form I want to select a row with all the information of that project in the same row but in different columns.
    Like: System#, CustomerName, DeliveryDate and many more.

    Then i want to press a button to print a report.
    In this report there need to be values of the selected row.



    So each time I select an another row and I press "print report" the values of that row need to be put in the report.
    I have tried DLookUp but that gives me an error each time.

    Can someone help me? I think there must be an easy solution but I dont know it yet.

    In the report I've tried to put the DLookUp function in the controlsource of a textbox.
    Code:
    =DLookUp([System#];[Forms]![Unfinished projects];[OrderID]=[Forms]![Unfinished projects].[CurrentRecord])
    Thanks in advance.

    Dennis.

  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,518
    Typically the report would be based on a table or (more often) query. The query could have criteria that restricted it to the desired record(s), or you can use this method:

    http://www.baldyweb.com/wherecondition.htm
    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. Open Edit Form with selected information
    By Ossos in forum Access
    Replies: 6
    Last Post: 10-02-2016, 09:06 AM
  2. Replies: 1
    Last Post: 07-08-2014, 02:06 PM
  3. Replies: 2
    Last Post: 07-01-2014, 10:48 AM
  4. Replies: 3
    Last Post: 05-02-2014, 09:27 AM
  5. Replies: 12
    Last Post: 04-18-2011, 08:52 AM

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