<?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: can't display data from .mdb when startup the form</title><link>https://www.infopathdev.com:443/forums/thread/2920.aspx</link><pubDate>Thu, 03 Aug 2006 16:20:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2920</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2920.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2920</wfw:commentRss><description>Do not put such code in the Startup method... place it in an OnLoad event handler.</description></item><item><title>can't display data from .mdb when startup the form</title><link>https://www.infopathdev.com:443/forums/thread/1468.aspx</link><pubDate>Thu, 03 Aug 2006 02:24:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1468</guid><dc:creator>Whitley</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1468.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1468</wfw:commentRss><description>i am using vb.net to retrieve data from .mdb and display it into drop down list when startup the form. but now i have a problem to display the data.&lt;br /&gt;hope someone to advice.&lt;br /&gt;&lt;br /&gt;&lt;font color="blue"&gt;My Coding is shown as below.&lt;/font id="blue"&gt;&lt;br /&gt;Dim strConnection As String = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\eLeave.mdb"&lt;br /&gt;Dim cn As OleDbConnection = New OleDbConnection(strConnection)&lt;br /&gt;Dim strGetData As String&lt;br /&gt;Dim str As Object&lt;br /&gt;&lt;br /&gt;   strGetData = "SELECT Name " &amp; _&lt;br /&gt;                " FROM tblStaffŠ &amp; _&lt;br /&gt;                " WHERE Designation = 'Manager'"&lt;br /&gt;&lt;br /&gt;   Dim strCommandRead As New OleDbCommand(strGetData, cn)&lt;br /&gt;&lt;br /&gt;   cn.Open()&lt;br /&gt;&lt;br /&gt;   str = strCommandRead.ExecuteReader()&lt;br /&gt;&lt;br /&gt;   thisXDocument.DOM.selectSingleNode("//myFields:field1").text = str&lt;br /&gt;&lt;br /&gt;   cn.Close()&lt;br /&gt;&lt;br /&gt;&lt;font color="blue"&gt;Error message&lt;/font id="blue"&gt;&lt;br /&gt;The _Startup or _shutdown method in this form's code contains one or more calls to members of the microsoft.office.interop.infopath.semitrust namespace. calls to this namespace from these methods are not allowed.</description></item></channel></rss>