Results 1 to 4 of 4
  1. #1
    faca is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Mar 2018
    Posts
    52

    Lookup for field


    Hello!

    I have a calculated field in form called "SubTotal" .. is it possible to somehow show this field in report?

    Form structure:

    PartID PartNumber PartName Unit Quantity SellingPrice Tax SubTotal


    Report structure:

    PartName SubTotal


    Form and report are not linked (not same table)


    Any suggestions?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,815
    Options:

    1. form must be open, expression in textbox: =Forms!formname.textboxname

    2. pass value with OpenArgs argument of OpenReport, expression in textbox: =OpenArgs.

    3. form sets a global variable and have a VBA function behind report read global variable and expression in textbox: =MyFunction

    4. form sets a TempVars variable, textbox expression references TempVars variable

    5. maybe domain aggregate function DSum or DLookup to pull data from table or query
    Last edited by June7; 10-26-2019 at 10:52 AM.
    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.

  3. #3
    faca is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Mar 2018
    Posts
    52
    Quote Originally Posted by June7 View Post
    Options:

    1. form must be open, expression in textbox: =Forms!formname.textboxname

    2. pass value with OpenArgs argument of OpenReport, expression in textbox: =Me.OpenArgs.

    3. form sets a global variable and have a VBA function behind report read global variable and expression in textbox: =MyFunction

    4. form sets a TempVars variable, textbox expression references TempVars variable

    5. maybe domain aggregate function DSum or DLookup to pull data from table or query
    Thank you, i'll try

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,815
    Corrected my previous post for error in option 2.
    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: 9
    Last Post: 10-10-2019, 05:13 PM
  2. Replies: 2
    Last Post: 06-20-2018, 11:21 PM
  3. Replies: 4
    Last Post: 03-17-2016, 07:16 AM
  4. Lookup values not appearing in Lookup field?
    By dominover in forum Access
    Replies: 4
    Last Post: 03-05-2016, 05:01 PM
  5. Replies: 3
    Last Post: 05-31-2014, 11:37 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