<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Crash course in InfoPath coding using VBScript</title><link>https://www.infopathdev.com:443/forums/thread/2876.aspx</link><pubDate>Mon, 31 Jul 2006 19:21:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2876</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2876.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2876</wfw:commentRss><description>If you do want to do this in code, the "lost focus" you are talking about is really the OnAfterChange event. Do a little research on this event and how to use it.</description></item><item><title>Re: Crash course in InfoPath coding using VBScript</title><link>https://www.infopathdev.com:443/forums/thread/2875.aspx</link><pubDate>Sat, 29 Jul 2006 16:34:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2875</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2875.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2875</wfw:commentRss><description>Hello Eric and welcome to the forums!&lt;br /&gt;&lt;br /&gt;You should be able to accomlish this without writing any code.  I have written a HowTo on doing this with a Drop-Down list box, but you should be able to follow it pretty closely and apply the same logic to a text box. It would probably be even easier.&lt;br /&gt;&lt;br /&gt;After you have the fields populating like you want to, you can add a button to submit the query to your DB.</description></item><item><title>Crash course in InfoPath coding using VBScript</title><link>https://www.infopathdev.com:443/forums/thread/1450.aspx</link><pubDate>Sat, 29 Jul 2006 13:52:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1450</guid><dc:creator>ciredon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1450.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1450</wfw:commentRss><description>To Anyone that could help.&lt;br /&gt;&lt;br /&gt;I'm new to infopath. Can anyone give me a sample code for me to get the idea on how to perform codes in InfoPath using VBScript.&lt;br /&gt;&lt;br /&gt;What I wanted to do was: I input data into a textbox (Employee Number), then when control is lost (LostFocus())from the textbox it will search a secondary database (Employee Information). When a record in the database matches it will display the corresponding employee information like department, telephone number, last name &amp; first name into corresponding read-only controls in the form. Afterwhich I can submit the final content of the form into the Main database.&lt;br /&gt;&lt;br /&gt;Q1: Is this logic possible to be implemented?&lt;br /&gt;Q2: Is is true to assume that the controls in the form should be  binded to fields in the Main database yet data displayed in these controls comes from a secondary database or from a variable used in coding?&lt;br /&gt;&lt;br /&gt;Thank you in advance.</description></item></channel></rss>