Tables not able to join in same datasource - InfoPath Dev
in

InfoPath Dev

Tables not able to join in same datasource

Last post 07-02-2010 03:02 PM by aruna akella. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 07-02-2010 11:20 AM

    Tables not able to join in same datasource

    I have two tables that I want to join.  They are both contained in the same datasource.  I am trying to get them to join together in an SQL statement.  The SQL is the correct syntax.  The syntax is:

     

    select PurchOrd.PONbr,PurOrdDet.InvtID from PurchOrd JOIN PurOrdDet ON PurchOrd.PONbr=PurOrdDet.PONbr WHERE PurchOrd.PONbr LIKE '%" + PONbrId + "%' AND PurchOrd.ProjectID LIKE '%" + ProjectId + "%' AND VendName LIKE '%" + VendorNameId + "%' AND PurchOrd.ReqNbr LIKE '%" + PRNbrId + "%' AND PurchOrd.User6 LIKE '%" + ReqId + "%'"

     The fields for PurchOrd display just fine, but the fields for PurOrdDet do not display at all, and I cannot figure out why

  • 07-02-2010 03:02 PM In reply to

    Re: Tables not able to join in same datasource

    Have you tried using the same query in SQL? Does it return the correct number of rows?

    I just tried using join, and it returns all the specified rows of data in InfoPath.

    Aruna Akella
    Qdabra® Software / InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.