<?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>Microsoft Access</title><link>https://www.infopathdev.com:443/forums/141.aspx</link><description>Qdabra is committed to answering InfoPath questions. However, we do not support Microsoft Access. For non-Access questions, please use the other boards.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Infopath - Display data from a database</title><link>https://www.infopathdev.com:443/forums/thread/37869.aspx</link><pubDate>Fri, 30 Jan 2009 01:52:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:37869</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/37869.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=141&amp;PostID=37869</wfw:commentRss><description>&lt;p&gt;Oh good! Eval is great, but a little tricky at first.&lt;/p&gt;</description></item><item><title>Re: Infopath - Display data from a database</title><link>https://www.infopathdev.com:443/forums/thread/37854.aspx</link><pubDate>Thu, 29 Jan 2009 16:16:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:37854</guid><dc:creator>clawrence</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/37854.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=141&amp;PostID=37854</wfw:commentRss><description>Nevermind, I got it.</description></item><item><title>Re: Infopath - Display data from a database</title><link>https://www.infopathdev.com:443/forums/thread/37851.aspx</link><pubDate>Thu, 29 Jan 2009 15:17:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:37851</guid><dc:creator>clawrence</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/37851.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=141&amp;PostID=37851</wfw:commentRss><description>&lt;p&gt;I am trying to do this in a form I&amp;#39;m working on, but I keep getting the error &amp;quot;does not point to a valid location path of a field or group.&amp;quot;&amp;nbsp; I&amp;#39;m trying to use the Quantity and LowestCompetitivePrice fields in the LineItems group of the data source shown below.&lt;/p&gt;
&lt;p&gt;&lt;img title="DataSource" style="WIDTH:351px;HEIGHT:612px;" height="612" alt="DataSource" src="http://i44.tinypic.com/2llip92.jpg" width="351" /&gt;&lt;/p&gt;</description></item><item><title>Re: Infopath - Display data from a database</title><link>https://www.infopathdev.com:443/forums/thread/33096.aspx</link><pubDate>Tue, 14 Oct 2008 23:06:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33096</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33096.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=141&amp;PostID=33096</wfw:commentRss><description>&lt;p&gt;Math is definitely not my strong point. I&amp;#39;m attaching the template again, this time using sum &amp;amp; eval, see if this helps.&lt;/p&gt;
&lt;p&gt;The formula is sum(eval(&lt;u&gt;group2,&lt;/u&gt; &amp;quot;my:field1 * my:field2&amp;quot;)). Note that with eval, you can select the group with Insert Field or Group, but must type the expression in manually.&lt;/p&gt;</description></item><item><title>Re: Infopath - Display data from a database</title><link>https://www.infopathdev.com:443/forums/thread/33095.aspx</link><pubDate>Tue, 14 Oct 2008 22:33:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33095</guid><dc:creator>Gary Burke</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33095.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=141&amp;PostID=33095</wfw:commentRss><description>&lt;p&gt;Hi Hilary,&lt;/p&gt;
&lt;p&gt;I have been able to get into the form....however, the Grand Total did not calculate correctly.&lt;/p&gt;
&lt;p&gt;I put in 10 in the 1st column and 20 in the 2nd column - the total calculated correctly on the row as 200&lt;/p&gt;
&lt;p&gt;I then inserted a new row and put in 20 in the 1st column and 30 in the 2nd column - the total calculated correctly as 600 on the row.&lt;/p&gt;
&lt;p&gt;However, the grand total was incorrect at 1500.&amp;nbsp; It should be 800.&amp;nbsp; The grand total is adding the 1st column together (10+20) and then multiplying that by the total of the 2nd column (20+30) - ie 30*50&lt;/p&gt;</description></item><item><title>Re: Infopath - Display data from a database</title><link>https://www.infopathdev.com:443/forums/thread/33094.aspx</link><pubDate>Tue, 14 Oct 2008 22:28:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33094</guid><dc:creator>Gary Burke</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33094.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=141&amp;PostID=33094</wfw:commentRss><description>Thanks so much for the example however, I need a username and password :-)</description></item><item><title>Re: Infopath - Display data from a database</title><link>https://www.infopathdev.com:443/forums/thread/33077.aspx</link><pubDate>Tue, 14 Oct 2008 14:07:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33077</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33077.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=141&amp;PostID=33077</wfw:commentRss><description>&lt;p&gt;So an expresssion box with the formula Quantity * UnitPrice (with your fields, of course) placed in a column in the repeating table doesn&amp;#39;t bring back the per row total price? &lt;/p&gt;
&lt;p&gt;For the grand total you could use sum(field) * sum(otherfield). I&amp;#39;m attaching a quick sample to this post, okay?&lt;/p&gt;</description></item><item><title>Re: Infopath - Display data from a database</title><link>https://www.infopathdev.com:443/forums/thread/33069.aspx</link><pubDate>Tue, 14 Oct 2008 06:18:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33069</guid><dc:creator>Gary Burke</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33069.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=141&amp;PostID=33069</wfw:commentRss><description>&lt;p&gt;Sorry...I jumped the gun. :-)&lt;/p&gt;
&lt;p&gt;All works fine until I introduce a repeating table.&lt;/p&gt;
&lt;p&gt;In that section I have Quantity and Unit Price.&amp;nbsp; These two fields are linked to my main data connection.&amp;nbsp; Naturally I wish to extend the total for each row in the table, and to then have a Grand Total for all rows (of just the extended total).&lt;/p&gt;
&lt;p&gt;My next part will be depending upon the value in the Grand Total, I will need to do x or y, so i will need to reference this value.&lt;/p&gt;
&lt;p&gt;I have tried text box, but that has to be bound to a field in my data connection, and I don&amp;#39;t have one, nor should I have one (its not good programming to have extensions stored in a database table, they get calculated when needed).&lt;/p&gt;
&lt;p&gt;I have tried an expression box, but then how do i add these to obtain a Grand Total ?&amp;nbsp; Plus it would appear that each expression box contains the same values, on each row, irrespective of the Quantity and Unit price used on each row.&lt;/p&gt;
&lt;p&gt;Looking forward to your assistance once again.&lt;/p&gt;</description></item><item><title>Re: Infopath - Display data from a database</title><link>https://www.infopathdev.com:443/forums/thread/33062.aspx</link><pubDate>Tue, 14 Oct 2008 03:04:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33062</guid><dc:creator>Gary Burke</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33062.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=141&amp;PostID=33062</wfw:commentRss><description>&lt;p&gt;All working just fine now......I suspect my problem was that my &amp;quot;where&amp;quot; clause was not querying the correct field :-)&lt;/p&gt;
&lt;p&gt;Thanks for your help&lt;/p&gt;</description></item><item><title>Re: Infopath - Display data from a database</title><link>https://www.infopathdev.com:443/forums/thread/33040.aspx</link><pubDate>Mon, 13 Oct 2008 14:32:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33040</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33040.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=141&amp;PostID=33040</wfw:commentRss><description>&lt;p&gt;The filter in your XPath&amp;nbsp;looks correct for what you are trying to do. I&amp;#39;m sure you&amp;#39;ve done this, but do verify that your user name is in your access DB exactly as it is being returned in the form (one way I do this is to write a query in my DB and copy and paste the contents of my text box directly into the &amp;#39;where&amp;#39; clause). &lt;/p&gt;</description></item><item><title>Re: Infopath - Display data from a database</title><link>https://www.infopathdev.com:443/forums/thread/33026.aspx</link><pubDate>Mon, 13 Oct 2008 05:59:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33026</guid><dc:creator>Gary Burke</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33026.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=141&amp;PostID=33026</wfw:commentRss><description>&lt;p&gt;Actually the POUserID is populated with the userName function.&lt;/p&gt;
&lt;p&gt;The UserId is the field in the secondary data source.&lt;/p&gt;
&lt;p&gt;The formula is trying to say &amp;quot;find the phone number in tblUsers (in Access) where its UserID (an indexed field) = the POUserID (as found on the form).&lt;/p&gt;
&lt;p&gt;I do not get an error, but no data is returned.&lt;/p&gt;</description></item><item><title>Re: Infopath - Display data from a database</title><link>https://www.infopathdev.com:443/forums/thread/33025.aspx</link><pubDate>Mon, 13 Oct 2008 05:49:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33025</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33025.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=141&amp;PostID=33025</wfw:commentRss><description>&lt;p&gt;That looks correct.&lt;/p&gt;
&lt;p&gt;I would have a field that defaults to Username(), I am assuming that is the UserID.&lt;/p&gt;
&lt;p&gt;So your formula looks correct.&lt;/p&gt;
&lt;p&gt;Have you put UserID on the form to verify what is coming across?&amp;nbsp; USername gets the local username not the domain account.&amp;nbsp; That is one limitation that I prefer an AD web service for so that it works with VPN users and etc.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Infopath - Display data from a database</title><link>https://www.infopathdev.com:443/forums/thread/33017.aspx</link><pubDate>Mon, 13 Oct 2008 00:21:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33017</guid><dc:creator>Gary Burke</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33017.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=141&amp;PostID=33017</wfw:commentRss><description>&lt;p&gt;Another way of looking at what i am trying to do is as follows:-&lt;/p&gt;
&lt;div&gt;Requestor&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Contact Number&amp;nbsp;&amp;nbsp;&amp;nbsp; Contact Email&lt;/div&gt;
&lt;div&gt;gary.burke&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 614 123 456&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;a href="mailto:gary.burke@superamart.com"&gt;gary.burke@superamart.com&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;I get the Requestor&amp;#39;s name from the function userName.&lt;/div&gt;
&lt;div&gt;I now wish to merely display that user&amp;#39;s contact number and email address.&amp;nbsp; In an attempt to achieve this, i have inserted 2 expression boxes (1 for each field).&amp;nbsp; The data for these 2 fields is found in&amp;nbsp;a table in an Access database called tblUsers.&amp;nbsp; The connection to this table is a secondary data source called Users.&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;I would think that the data could be retrieved by filtering as follows:-&lt;/div&gt;
&lt;div&gt;@UserPhoneNumber[@UserID = POUserID]&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/div&gt;
&lt;div&gt;POUserID is the data used for the Requestor&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;</description></item><item><title>Re: Infopath - Display data from a database</title><link>https://www.infopathdev.com:443/forums/thread/33016.aspx</link><pubDate>Sun, 12 Oct 2008 22:15:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33016</guid><dc:creator>Gary Burke</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33016.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=141&amp;PostID=33016</wfw:commentRss><description>&lt;p&gt;Thanks for the reply.&lt;/p&gt;
&lt;p&gt;For 1&lt;/p&gt;
&lt;p&gt;I did not see this as being a repeating table or section.&lt;/p&gt;
&lt;p&gt;I have a field UserID whose contents is the function username.&amp;nbsp; I wish to have a couple of other fields to display the user&amp;#39;s telephone number and email address.&amp;nbsp; These 2 pieces of data are found in the table tblUsers.&amp;nbsp; How do I use conditional formatting as you have suggested ?&amp;nbsp; Specifically what is the condition and/or function ?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For 2&lt;/p&gt;
&lt;p&gt;I believe you are saying that in my table that contains the names of those who are authorised to &amp;quot;approve&amp;quot; a purchase order, I need a field named &amp;quot;Approver&amp;quot; and the data in that field would be a yes or no.&lt;/p&gt;
&lt;p&gt;I then need to set the name of the approver and a corresponding &amp;quot;approved date&amp;quot; field as visible = false, unless the username = approver name in which case I would set the &amp;quot;approved date&amp;quot; as visible.&lt;/p&gt;
&lt;p&gt;How do I send the approver a link programatically ?&lt;/p&gt;
&lt;p&gt;How do I set the display fields as visible = true or visible = false ?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Infopath - Display data from a database</title><link>https://www.infopathdev.com:443/forums/thread/32989.aspx</link><pubDate>Fri, 10 Oct 2008 13:45:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32989</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32989.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=141&amp;PostID=32989</wfw:commentRss><description>&lt;p&gt;For 1.&lt;/p&gt;
&lt;p&gt;I am assuming you would want a repeating table or section.&amp;nbsp; Drag you r secondary onto the view to create it. Then add conditional formatting to hide all but where username matches username in your main data.&lt;/p&gt;
&lt;p&gt;For 2.&lt;/p&gt;
&lt;p&gt;Yes you would want to use the approve field to control whether the button to approve is enabled or visible, etc.Again this is done in conditional formatting.&lt;/p&gt;
&lt;p&gt;I would recommend you just send the approver a link and they open a new form and query the data again, or make sure your form requeries each time it is opened so you do not have data that is not current being sent to people and potentially overwriting newer data.&lt;/p&gt;</description></item></channel></rss>