CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: DataEnvironment

  1. #1
    Join Date
    Jun 2001
    Location
    Philippines
    Posts
    1

    DataEnvironment

    my problem is about the reports in the data environment where the results of the 2 columns will be attach in an unbound text box.
    Sample
    field1 + field2 = unbound text box.
    the result will be viewed and print in the report design.

    any help can do. thank you



  2. #2
    Join Date
    Sep 1999
    Location
    Red Wing, MN USA
    Posts
    312

    Re: DataEnvironment

    Make the Calculation a part of the SQL used as the source for the report, i.e. (Using NWIND.MDB as example):
    SELECT *, (UnitPrice * UnitsInStock) as TotalPrice FROM Products


    This way you can just add the field containing the calculation to the report like any other field.

    Aaron Young
    Senior Programmer Analyst
    [email protected]
    Certified AllExperts Expert: http://www.allexperts.com/displayExp...p?Expert=11884
    Aaron Young
    Senior Programmer Analyst (Red Wing Software)
    Certified AllExperts Expert

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured