activate window "debug output" this.RowSourceType = 3 this.RowSource = "SELECT Purchaseorder.iponumber, Supplier.cname, Purchaseorder.dissued," + ; "Purchaseorder.drequired, Purchaseorder.dshipped," + ; "Purchaseorder.dreceived, " + ; "ShipMethod.cValue as cShipMethod," + ; "Terms.cValue as cTerms, " + ; "Supplier.cphone, Supplier.cfax, Supplier.cemail " + ; "FROM projectmgr!purchaseorder " + ; "INNER JOIN projectmgr!supplier " + ; " ON Supplier.iid = Purchaseorder.isupplier" + ; "INNER JOIN projectmgr!codes as ShipMethod" + ; " ON iShipMethod = ShipMethod.iID" + ; "INNER JOIN projectmgr!codes as Terms " + ; " ON Purchaseorder.iterms = Terms.iID " + ; "WHERE Purchaseorder.iproject = ?projects.iID" + ; "ORDER BY Purchaseorder.iponumber" debugout len( this.RowSource ) debugout this.RowSource this.Comment = && copy of the above code debugout len( this.Comment ) debugout this.CommentThe SQL command was truncated at 256 chars. RowSource seems to have some other internal limit (ie BUG). The Comment prints out len of 580 and the full string.