Total from a SQL Database and output to InfoPath - InfoPath Dev
in

InfoPath Dev

Total from a SQL Database and output to InfoPath

Last post 10-17-2006 12:38 AM by Matt Faus. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 10-11-2006 11:18 AM

    • Michael71
    • Top 50 Contributor
      Male
    • Joined on 10-07-2006
    • Mclean, Virginia-USA
    • Posts 283

    Total from a SQL Database and output to InfoPath

    How do I Sum monthly expense, monthly Budgeted, and monthly variance of these into a Year to Date Running Total and output the total to a InfoPath Form; each time a user opens it up? Example

    Monthly Expense     Monthly Budgeted      Monthly Variance
    $12,000    $14,000    $2,000

    YTD Expenses    YTD Budget     YTD Variance

    $90,000     $140,000     $50,0000 --->Should be coming from the SQL database and totalling up more each time the user submits that form with monthly expense and monthly budgeted and Monthly Variance
  • 10-12-2006 09:21 PM In reply to

    Re: Total from a SQL Database and output to InfoPath

    Hi Michael,
    You can put all of these operations in your query and pull the data into InfoPath and use that data for processing in InfoPath.
  • 10-13-2006 06:48 AM In reply to

    • Michael71
    • Top 50 Contributor
      Male
    • Joined on 10-07-2006
    • Mclean, Virginia-USA
    • Posts 283

    Re: Total from a SQL Database and output to InfoPath

    Agni,

    Could you ellaborate a little. Or give me a reference. I don't understand.
  • 10-15-2006 11:42 PM In reply to

    • Kamal
    • Not Ranked
    • Joined on 10-16-2006
    • India
    • Posts 2

    Re: Total from a SQL Database and output to InfoPath

    Hi,
    1. Retrieve data to InfoPath from SQL Database using ADO Adapter queries.
    2. Process the data (do the required calculations like sum of Monthly Expense). (However retrieved data is in the form of XML so for processing these data we have to load data XML into InfoPath)
    3. Place the final results in InfoPath.
    4. Place this code in the form load event, so that it executes each time a user opens it up
  • 10-17-2006 12:38 AM In reply to

    Re: Total from a SQL Database and output to InfoPath

    This is a duplicate thread and therefore is being closed. Please continue discussion here:

    http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=3445
    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.