<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Making an Invoice with value lookups</title><link>https://www.infopathdev.com:443/forums/thread/5406.aspx</link><pubDate>Tue, 28 Feb 2006 16:08:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5406</guid><dc:creator>jfdicurt</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5406.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5406</wfw:commentRss><description>Hello&lt;br /&gt;I am having some difficulty making InfoPath create a simple invoice form that works similar to a Quickbooks or Peachtree invoice where I select an item from a drop down and the unit price is populated automatically via a filtered lookup.&lt;br /&gt;To be more specific:&lt;br /&gt;I have a Repeating Table that contains fields for Quantity, Description, Unit Price and Extended Price (Extended price is just Qty * Unit Price)&lt;br /&gt;The Description is a drop down menu populated from a secondary data source.&lt;br /&gt;My goal is to select the item in the desciption field and have the unit price complete automatically based on what was selected in the description field.  The unit price value will come from the same secondary data source and same record as the description came from.&lt;br /&gt;&lt;br /&gt;I have used the suggested default value formula for the unit price field where it performs a filter that matches the description the user selects with the description in the secondary data source: &lt;br /&gt;@Retail[@Description = descriptionMRC]&lt;br /&gt;Retail is the unit price I am looking up from the secondary source when the local description matches the description in the secondary data source.&lt;br /&gt;&lt;br /&gt;It all works fine on the first line of the repeating table, but as I add lines to the table it no longer looks up the unit price correctly.&lt;br /&gt;Help!&lt;br /&gt;&lt;br /&gt;Thanks much!&lt;br /&gt;</description></item></channel></rss>