<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/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>Access Databases and AccessDataSource Control</title><link>http://forums.asp.net/55.aspx</link><description>Discuss using Access as a data store for ASP.NET, and the AccessDataSource control.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Access data from a table in Access 2000 Database programmicly</title><link>http://forums.asp.net/thread/3258417.aspx</link><pubDate>Thu, 25 Jun 2009 17:55:56 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3258417</guid><dc:creator>cgould01</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3258417.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=55&amp;PostID=3258417</wfw:commentRss><description>&lt;p&gt;I wanted to let everyone know what I did to fix the problem:&lt;/p&gt;&lt;pre class="vb.net" name="code"&gt;Private Sub LoginForm1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        &amp;#39;TODO: This line of code loads data into the &amp;#39;BatchAideDataSet.sa&amp;#39; table. You can move, or remove it, as needed.
        Me.SaTableAdapter.Fill(Me.BatchAideDataSet.sa)

    End Sub


Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click
        Dim MyDatarows() As System.Data.DataRow = BatchAideDataSet.Tables(&amp;quot;sa&amp;quot;).Select(&amp;quot;Username=&amp;#39;CGOULD&amp;#39;&amp;quot;)
        Dim MyInfo As String = MyDatarows(0).Item(2)
        MsgBox(MyInfo)
        Me.Close()
    End Sub&lt;/pre&gt;&lt;pre class="vb.net" name="code"&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre class="vb.net" name="code"&gt;The problem that I was having and what I have learned is that when you copy a dataset from one form to another it will not add the &amp;quot; on load&amp;quot; event for you.&lt;/pre&gt;&lt;pre class="vb.net" name="code"&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre class="vb.net" name="code"&gt;Does wonders when you add the line above to your form load event :P~&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Access data from a table in Access 2000 Database programmicly</title><link>http://forums.asp.net/thread/3258287.aspx</link><pubDate>Thu, 25 Jun 2009 16:42:57 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3258287</guid><dc:creator>hans_v</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3258287.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=55&amp;PostID=3258287</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;cgould01:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;Hans_v let me know if you think that will work for a windows form...&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I believe that this will only work for ASP.NET. But If you are asking about Windows development, you&amp;#39;re on the wrong forum, because this forum is, like the URL is saying, for ASP.NET only!&lt;/p&gt;
&lt;p&gt;&lt;a href="http://windowsclient.net/default.aspx"&gt;http://windowsclient.net/default.aspx&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: Access data from a table in Access 2000 Database programmicly</title><link>http://forums.asp.net/thread/3257851.aspx</link><pubDate>Thu, 25 Jun 2009 13:33:26 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3257851</guid><dc:creator>cgould01</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3257851.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=55&amp;PostID=3257851</wfw:commentRss><description>&lt;p&gt;The link you gave is for aspx web pages, will this example work for a windows form app?&amp;nbsp; I am assuming that it will.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;On another note: The other example still does not work.&amp;nbsp; When I&amp;nbsp;did a quick watch;&amp;nbsp; The row count is coming up 0, which is telling me that&amp;nbsp;there is nothing in the table.&amp;nbsp; However, I know that there is one entry in the table, because I was able to view the user in the same program under my add user form.&amp;nbsp; I am at a loss as to why it&amp;nbsp;can&amp;#39;t seem to pull the information from the table.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hans_v let me know if you think that will work for a windows form...&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Access data from a table in Access 2000 Database programmicly</title><link>http://forums.asp.net/thread/3256171.aspx</link><pubDate>Wed, 24 Jun 2009 19:08:24 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3256171</guid><dc:creator>hans_v</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3256171.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=55&amp;PostID=3256171</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;cgould01:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;I need to look through the usernames until I find a match (compairing to a textbox), then check the Password, after which I will then need to store the Division to a Public Variable to set what the user can &amp;#39;see&amp;#39;.&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It looks to me that you&amp;#39;re trying to reinvented a wheel that Microsoft already invented...&lt;/p&gt;
&lt;p&gt;&lt;a href="http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=404" target="_blank"&gt;Using the Microsoft Access Providers to Replace the Built-In SQL Server Providers&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: Access data from a table in Access 2000 Database programmicly</title><link>http://forums.asp.net/thread/3255817.aspx</link><pubDate>Wed, 24 Jun 2009 15:42:17 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3255817</guid><dc:creator>csgeyer@hotmail.com</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3255817.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=55&amp;PostID=3255817</wfw:commentRss><description>&lt;p&gt;Most likely whatever value you are pulling from the TextBox is not in the table.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Also, I just noticed something. The Select statement should have &amp;amp; signs, not + signs. VB uses &amp;quot;&amp;amp;&amp;quot; to concatenate strings. Changing this should fix the problem. Otherwise, try this. Replace smith in the line below with a username you know is in the table.&lt;/p&gt;&lt;p&gt;&lt;span style="color:#006699;background-color:inherit;font-weight:bold;padding:0px;margin:0px;border:initial none initial;"&gt;Dim&lt;/span&gt;&lt;span style="color:black;background-color:inherit;padding:0px;margin:0px;border:initial none initial;"&gt;&amp;nbsp;MyDatarows()&amp;nbsp;&lt;/span&gt;&lt;span style="color:#006699;background-color:inherit;font-weight:bold;padding:0px;margin:0px;border:initial none initial;"&gt;As&lt;/span&gt;&lt;span style="color:black;background-color:inherit;padding:0px;margin:0px;border:initial none initial;"&gt;&amp;nbsp;System.Data.DataRow&amp;nbsp;=&amp;nbsp;BatchAideDataSet.Tables(&lt;/span&gt;&lt;span style="color:blue;background-color:inherit;padding:0px;margin:0px;border:initial none initial;"&gt;&amp;quot;sa&amp;quot;&lt;/span&gt;&lt;span style="color:black;background-color:inherit;padding:0px;margin:0px;border:initial none initial;"&gt;).&lt;/span&gt;&lt;span style="color:#006699;background-color:inherit;font-weight:bold;padding:0px;margin:0px;border:initial none initial;"&gt;Select&lt;/span&gt;&lt;span style="color:black;background-color:inherit;padding:0px;margin:0px;border:initial none initial;"&gt;(&lt;/span&gt;&lt;span style="color:blue;background-color:inherit;padding:0px;margin:0px;border:initial none initial;"&gt;&amp;quot;Username=&amp;#39;smith&lt;/span&gt;&lt;span style="color:blue;background-color:inherit;padding:0px;margin:0px;border:initial none initial;"&gt;&amp;#39;&amp;quot;&lt;/span&gt;&lt;span style="color:black;background-color:inherit;padding:0px;margin:0px;border:initial none initial;"&gt;)&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:black;background-color:inherit;padding:0px;margin:0px;border:initial none initial;"&gt;(You can find a username by setting a breakpoint (F9) on this line, highlighting BatchAideDataSet.Tables(&amp;quot;sa&amp;quot;), right-clicking and choosing Quick Watch. Then drill down into the table&amp;#39;s rows and items until you locate a username - this will be good practice for understanding the object model and examining your code more thoroughly. Or you can take the easy path and look up a username from the database).&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:black;background-color:inherit;padding:0px;margin:0px;border:initial none initial;"&gt;You should not have a length of zero after replacing smith in the line above.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Re: Access data from a table in Access 2000 Database programmicly</title><link>http://forums.asp.net/thread/3255109.aspx</link><pubDate>Wed, 24 Jun 2009 11:23:18 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3255109</guid><dc:creator>cgould01</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3255109.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=55&amp;PostID=3255109</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;csgeyer@hotmail.com:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div class="dp-highlighter"&gt;
&lt;div class="bar"&gt;
&lt;div class="tools"&gt;&lt;a&gt;view plain&lt;/a&gt;&lt;a&gt;copy to clipboard&lt;/a&gt;&lt;a&gt;print&lt;/a&gt;&lt;a&gt;?&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;ol class="dp-vb"&gt;
&lt;li class="alt"&gt;&lt;span&gt;&lt;span class="keyword"&gt;Dim&lt;/span&gt;&lt;span&gt;&amp;nbsp;MyDatarows()&amp;nbsp;&lt;/span&gt;&lt;span class="keyword"&gt;As&lt;/span&gt;&lt;span&gt;&amp;nbsp;System.Data.DataRow&amp;nbsp;=&amp;nbsp;BatchAideDataSet.Tables(&lt;/span&gt;&lt;span class="string"&gt;&amp;quot;sa&amp;quot;&lt;/span&gt;&lt;span&gt;).&lt;/span&gt;&lt;span class="keyword"&gt;Select&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span class="string"&gt;&amp;quot;Username=&amp;#39;&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;nbsp;+&amp;nbsp;UsernameTextBox.Text&amp;nbsp;+&amp;nbsp;&lt;/span&gt;&lt;span class="string"&gt;&amp;quot;&amp;#39;&amp;quot;&lt;/span&gt;&lt;span&gt;)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;pre style="DISPLAY:none;" class="vb.net" name="code"&gt;Dim MyDatarows() As System.Data.DataRow = BatchAideDataSet.Tables(&amp;quot;sa&amp;quot;).Select(&amp;quot;Username=&amp;#39;&amp;quot; + UsernameTextBox.Text + &amp;quot;&amp;#39;&amp;quot;)&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;ought to do the trick.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hate to keep bothering u on this but, in the above example you gave.&amp;nbsp; I have a problem with the MyDatarows.Length always being zero (not getting a match from the table I suppose).&amp;nbsp; I know that there is data in the table and I have checked to make sure there is data in the dataset.&amp;nbsp; Any ideas?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;</description></item><item><title>Re: Access data from a table in Access 2000 Database programmicly</title><link>http://forums.asp.net/thread/3254223.aspx</link><pubDate>Wed, 24 Jun 2009 03:21:02 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3254223</guid><dc:creator>csgeyer@hotmail.com</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3254223.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=55&amp;PostID=3254223</wfw:commentRss><description>&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;pre name="code" class="vb.net"&gt;Dim MyDatarows() As System.Data.DataRow = BatchAideDataSet.Tables(&amp;quot;sa&amp;quot;).Select(&amp;quot;Username=&amp;#39;&amp;quot; + UsernameTextBox.Text + &amp;quot;&amp;#39;&amp;quot;)&lt;/pre&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;ought to do the trick.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Access data from a table in Access 2000 Database programmicly</title><link>http://forums.asp.net/thread/3254028.aspx</link><pubDate>Tue, 23 Jun 2009 23:59:38 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3254028</guid><dc:creator>cgould01</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3254028.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=55&amp;PostID=3254028</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m a little confused on something.&amp;nbsp; I am working in VB and looking at what you have done, I have done this:&lt;/p&gt;
&lt;p&gt;&lt;span class="kwd"&gt;Dim&lt;/span&gt; MyDatarows &lt;span class="kwd"&gt;As&lt;/span&gt; System.Data.DataRow&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyDatarows = BatchAideDataSet.Tables(&lt;span class="st"&gt;&amp;quot;sa&amp;quot;&lt;/span&gt;).&lt;span class="kwd"&gt;Select&lt;/span&gt;(&amp;quot;Username=&lt;span class="cmt"&gt;&amp;#39;&amp;quot; + UsernameTextBox.Text + &amp;quot;&amp;#39;&amp;quot;)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I get the following error on line 2:&lt;/p&gt;
&lt;p&gt;Error&amp;nbsp;1&amp;nbsp;Value of type &amp;#39;1-dimensional array of System.Data.DataRow&amp;#39; cannot be converted to &amp;#39;System.Data.DataRow&amp;#39;.&amp;nbsp;C:\Documents and Settings\cgould\My Documents\Visual Studio 2008\Projects\BatchAide_v2\BatchAide_v2\LoginForm1.vb&amp;nbsp;20&amp;nbsp;22&amp;nbsp;BatchAide_v2&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t understand why it can&amp;#39;t do it.&amp;nbsp; Any suggestions?&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Access data from a table in Access 2000 Database programmicly</title><link>http://forums.asp.net/thread/3253567.aspx</link><pubDate>Tue, 23 Jun 2009 17:36:23 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3253567</guid><dc:creator>csgeyer@hotmail.com</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3253567.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=55&amp;PostID=3253567</wfw:commentRss><description>I am assuming your dataset is called myDataSet. You can use the FilterExpression parameter of the Select method that is available for the Tables object as follows:&lt;br /&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;pre class="coloredcode"&gt;DataRow[] myDataRows = myDataSet.Tables[&lt;span class="st"&gt;&amp;quot;sa&amp;quot;&lt;/span&gt;].Select(&lt;span class="st"&gt;&amp;quot;UserName=&amp;#39;&amp;quot;&lt;/span&gt; + textboxUserName.Text + &lt;span class="st"&gt;&amp;quot;&amp;#39; AND Password=&amp;#39;&amp;quot;&lt;/span&gt; + textboxPassword.Text + &lt;span class="st"&gt;&amp;quot;&amp;#39;&amp;quot;&lt;/span&gt;);

&lt;span class="kwd"&gt;if&lt;/span&gt;(myDataRows.Length &amp;gt; 0)
{
     myVar = myDataRows[0][&lt;span class="st"&gt;&amp;quot;Division&amp;quot;&lt;/span&gt;].ToString();
}&lt;/pre&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Change the name of myDataSet, textboxUserName, textboxPassword, and myVar accordingly and you are all set. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Access data from a table in Access 2000 Database programmicly</title><link>http://forums.asp.net/thread/3253397.aspx</link><pubDate>Tue, 23 Jun 2009 15:20:04 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3253397</guid><dc:creator>cgould01</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3253397.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=55&amp;PostID=3253397</wfw:commentRss><description>&lt;p&gt;I need some help... I am trying to access a table from Access 2000 Database.&amp;nbsp; The table has 3 columns: UserName, Password, Division&lt;/p&gt;
&lt;p&gt;I need to look through the usernames until I find a match (compairing to a textbox), then check the Password, after which I will then need to store the Division to a Public Variable to set what the user can &amp;#39;see&amp;#39;.&amp;nbsp;&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I have a Dataset to the Access 2000 database already in use on another form.&amp;nbsp; The dataset includes the table called &amp;#39;sa&amp;#39; which is the table that I am trying to access.&lt;/p&gt;</description></item></channel></rss>