﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>A1VBCode Forums / Visual Basic (VB 4/5/6) / Database Programming </title><generator>InstantForum.NET v4.1.1</generator><description>A1VBCode Forums</description><link>http://www.a1vbcode.com/vbforums/</link><webMaster>forums@a1vbcode.com</webMaster><lastBuildDate>Thu, 20 Nov 2008 08:04:26 GMT</lastBuildDate><ttl>20</ttl><item><title>VBA / ACCESS Question</title><link>http://www.a1vbcode.com/vbforums/Topic26173-4-1.aspx</link><description>I am new to VBA does anyone know how this SHOULD have been written... I know every IF needs an END IF and the word OR does not seem to work so how would I cover all the below... and writing an IF for each does not work. &lt;/P&gt;&lt;P&gt;Private Sub cmbInternalStatus_Exit(Cancel As Integer)&lt;/P&gt;&lt;P&gt;If cmbInternalStatus = "Approved" And cmbWebStatus = "Approved" Then&lt;BR&gt;     Cancel = False&lt;BR&gt;If cmbInternalStatus = "Closed (Other)" And cmbWebStatus = "Closed (Other)" Then&lt;BR&gt;     Cancel = False&lt;BR&gt;If cmbInternalStatus = "Director Review" And cmbWebStatus = "Functional Analysis" Then&lt;BR&gt;     Cancel = False&lt;BR&gt;If cmbInternalStatus = "Disapproved" And cmbWebStatus = "Disapproved" Then&lt;BR&gt;     Cancel = False&lt;BR&gt;If cmbInternalStatus = "Functional Analysis" And cmbWebStatus = "Functional Analysis" Then&lt;BR&gt;     Cancel = False&lt;BR&gt;If cmbInternalStatus = "Fwd for Cmd Analysis" And cmbWebStatus = "Fwd for Cmd Analysis" Then&lt;BR&gt;     Cancel = False&lt;BR&gt;If cmbInternalStatus = "Fwd for Decision" And cmbWebStatus = "Fwd for Decision" Then&lt;BR&gt;     Cancel = False&lt;BR&gt;If cmbInternalStatus = "Fwd to SME" And cmbWebStatus = "Fwd to SME" Then&lt;BR&gt;     Cancel = False&lt;BR&gt;If cmbInternalStatus = "Ineligible" And cmbWebStatus = "Ineligible" Then&lt;BR&gt;     Cancel = False&lt;BR&gt;If cmbInternalStatus = "Pending Payment" And cmbWebStatus = "Approved" Then&lt;BR&gt;     Cancel = False&lt;BR&gt;If cmbInternalStatus = "Staffing (TL Only)" And cmbWebStatus = "Approved" Then&lt;BR&gt;     Cancel = False&lt;BR&gt;If cmbInternalStatus = "Team Lead Review" And cmbWebStatus = "Functional Analysis" Then&lt;BR&gt;     Cancel = False&lt;BR&gt;If cmbInternalStatus = "Tech Review" And cmbWebStatus = "Functional Analysis" Then&lt;BR&gt;     Cancel = False&lt;BR&gt;Else&lt;BR&gt;    MsgBox "Internal Status does not match Web Status, please correct.", , "Silly Analyst!"&lt;BR&gt;     Cancel = True&lt;BR&gt;End If&lt;BR&gt;    &lt;BR&gt;End Sub</description><pubDate>Mon, 10 Nov 2008 08:11:49 GMT</pubDate><dc:creator>SomeGuy1313</dc:creator></item><item><title>Manipulating records</title><link>http://www.a1vbcode.com/vbforums/Topic26256-4-1.aspx</link><description>&lt;DIV&gt;Hello,&lt;BR&gt;&lt;BR&gt;How do I determine the total number of records founds?, I would also like to add to two buttons to move to the next or previous records, what code should I add in those button?&lt;/DIV&gt;&lt;DIV&gt;How do I view the records in a textbox control?&lt;BR&gt;&lt;BR&gt;Thanks,&lt;BR&gt;&lt;BR&gt;Victor&lt;BR&gt;&lt;BR&gt;Dim ConnectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\aopt2002orgorg.mdb;Persist Security Info=True;Jet OLEDBatabase Password=testaopupdate"&lt;BR&gt;Dim objConnection As New OleDb.OleDbConnection(ConnectionString)&lt;BR&gt;&lt;BR&gt;'data adapter &lt;BR&gt;Dim objDataAdapter As New OleDb.OleDbDataAdapter(mySQL_Statement, objConnection)&lt;BR&gt;&lt;BR&gt;'dataset object &lt;BR&gt;Dim objDataSet As New DataSet&lt;BR&gt;'fill dataset &lt;BR&gt;objConnection.Open()&lt;BR&gt;?&lt;BR&gt;?&lt;BR&gt;?&lt;BR&gt;objDataAdapter.Fill(objDataSet, "SN")&lt;BR&gt;objConnection.Close()&lt;/DIV&gt;</description><pubDate>Sun, 16 Nov 2008 10:31:43 GMT</pubDate><dc:creator>victor64</dc:creator></item><item><title>update datase from text file</title><link>http://www.a1vbcode.com/vbforums/Topic26221-4-1.aspx</link><description>Hello,&lt;BR&gt;&lt;BR&gt;I have a text file with data for certain fileds that are in certain position, for example data for field1 is in yhe firts 5 spaces in each line, data for field2 is&lt;BR&gt;from the 7th space up to the 10th space, field3 from the 11th space to the 19 space etc..... &lt;BR&gt;&lt;BR&gt;I only know how to open and read the entire text into a form control, how do you read line by line and extrat the data using the "inset" command to populate the ACCESS table. I can use either &lt;ACRONYM title="Visual Basic"&gt;vb&lt;/ACRONYM&gt;/&lt;ACRONYM title="Visual Basic"&gt;vb&lt;/ACRONYM&gt;.net&lt;BR&gt;&lt;BR&gt;Thanks in advance&lt;BR&gt;&lt;BR&gt;Victor</description><pubDate>Thu, 13 Nov 2008 06:28:29 GMT</pubDate><dc:creator>victor64</dc:creator></item><item><title>Create a Sql Database</title><link>http://www.a1vbcode.com/vbforums/Topic26111-4-1.aspx</link><description>Can someone help me to create a database for a web application in VB.NET. I am new in VB.NET so I would like to know how to deal with those basic issues&lt;br&gt;&lt;br&gt;Any help please</description><pubDate>Mon, 03 Nov 2008 14:17:13 GMT</pubDate><dc:creator>bonhomme</dc:creator></item><item><title>images in dataset</title><link>http://www.a1vbcode.com/vbforums/Topic25762-4-1.aspx</link><description>Hi, I could use some help regarding putting images in a dataset.&lt;br&gt;&lt;br&gt;I'm developing a windows application that accesses an sql server database in another server, an sql server 2000 database.  A table, tblProducts, contains a field called ProdImage with type VarChar.  ProdImage contains the path of the image which is stored in the server's file system.&lt;br&gt;&lt;br&gt;I need to be able to load the records of tblProducts into a dataset including the image and not just the path since I want to use the images in a report.&lt;br&gt;&lt;br&gt;What is the best way to do this?  Does anybody have samples I can look at? Would doing this be better in SQL server 2005?&lt;br&gt;&lt;br&gt;Thanks</description><pubDate>Mon, 22 Sep 2008 22:22:33 GMT</pubDate><dc:creator>rlangi05</dc:creator></item><item><title>Pass Paramater to DB2 in VB.net</title><link>http://www.a1vbcode.com/vbforums/Topic26006-4-1.aspx</link><description>&lt;TABLE cellSpacing=1 cellPadding=3 width="100%" align=center border=0&gt;&lt;TBODY&gt;&lt;TR class=row&gt;&lt;TD class=rating vAlign=top width="100%"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class=body vAlign=top width="100%"&gt;&lt;TABLE height=70 cellSpacing=2 cellPadding=2 width="100%" border=0&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD vAlign=top&gt;&lt;FONT class=body&gt;Dear all &lt;BR&gt;&lt;BR&gt;This code is working well in SQL Server But I need it in DB2 and the pass parameter &lt;FONT color=red&gt;@&lt;/FONT&gt;BLOBData is not valid in DB2 &lt;BR&gt;&lt;BR&gt;&lt;BR&gt;  Dim cmd As New OleDb.OleDbCommand &lt;BR&gt;        Dim sql As String = "INSERT INTO BLOBTest (BLOBData,BLOBID)" &amp;amp; _ &lt;BR&gt;    "VALUES (@BLOBData,'" &amp;amp; Text1.Text &amp;amp; "')", con &lt;BR&gt;&lt;BR&gt;        Dim strBLOBFilePath As String = _ &lt;BR&gt;            "C:\F01Siocx.bmp" &lt;BR&gt;&lt;BR&gt;&lt;BR&gt;        Dim fsBLOBFile As New FileStream(strBLOBFilePath, _ &lt;BR&gt;            FileMode.Open, FileAccess.Read) &lt;BR&gt;&lt;BR&gt;        Dim bytBLOBData(fsBLOBFile.Length() - 1) As Byte &lt;BR&gt;        fsBLOBFile.Read(bytBLOBData, 0, bytBLOBData.Length) &lt;BR&gt;        fsBLOBFile.Close() &lt;BR&gt;&lt;BR&gt;        Dim prm As New OleDbParameter("@BLOBData", OleDbType.LongVarBinary, _ &lt;BR&gt;            bytBLOBData.Length, ParameterDirection.Input, False, _ &lt;BR&gt;            0, 0, Nothing, DataRowVersion.Current, bytBLOBData) &lt;BR&gt;        cmd.CommandText = sql &lt;BR&gt;        cmd.Parameters.Add(prm) &lt;BR&gt;        con.Open() &lt;BR&gt;        cmd.ExecuteNonQuery() &lt;BR&gt;        con.Close() &lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description><pubDate>Tue, 14 Oct 2008 12:57:04 GMT</pubDate><dc:creator>gehan</dc:creator></item><item><title>Vb.net and Sql Select From Group</title><link>http://www.a1vbcode.com/vbforums/Topic25959-4-1.aspx</link><description>Deleting</description><pubDate>Fri, 10 Oct 2008 11:52:06 GMT</pubDate><dc:creator>DekaFlash</dc:creator></item><item><title>Can't seem to get it right</title><link>http://www.a1vbcode.com/vbforums/Topic25932-4-1.aspx</link><description>Hello All,&lt;/P&gt;&lt;P&gt;Simple question to you, but hard for me to figure out.......&lt;/P&gt;&lt;P&gt;I am making an Amber Alert program.  I have everything designed and made and created an access database. I have a successful connection to my database.  I have set the text property in the DataBinding to each textbox on my form. &lt;/P&gt;&lt;P&gt;For some reason I can not update information from the DataSet to the Database. I have tried to use TableAdapterManager.UpdateAll (which I read about on msdn site), but nothing works. &lt;/P&gt;&lt;P&gt;I feel dumb since I know I am missing something easy.  &lt;/P&gt;&lt;P&gt;Can anyone please either help me connect the dataset to update the database or direct me to a tutorial that explains this in a 2nd grade level.......&lt;/P&gt;&lt;P&gt;Thanks in advanced...&lt;/P&gt;&lt;P&gt;daveofgv</description><pubDate>Tue, 07 Oct 2008 17:19:39 GMT</pubDate><dc:creator>daveofgv</dc:creator></item><item><title>LAN codes</title><link>http://www.a1vbcode.com/vbforums/Topic24008-4-1.aspx</link><description>[font=Arial][size=7]Hello A1Vbcodes members,&lt;br&gt;&lt;br&gt;I have just finished writing a program for a Pharmacy shop, it works fine on only one computer, but when we try it in three computers networked together with the database on one of the computers it did not work on those without database. Please somebody help me out!!![/font]</description><pubDate>Tue, 22 Jan 2008 04:36:51 GMT</pubDate><dc:creator>Shyner</dc:creator></item><item><title>HELP! how can a user access a specific folder in Visual Basic 6</title><link>http://www.a1vbcode.com/vbforums/Topic25852-4-1.aspx</link><description>I really need help on this one.. :-S&lt;br&gt;&lt;br&gt;Once a user creates his own account, a folder for him will be automatically created. this folder will allow him to store files in it. remember, only this specific user can access his folder (when visual basic project is being executed)&lt;br&gt;and if possible, user list and files should be stored in a database. &lt;br&gt;&lt;br&gt;Thanks in advance! i really really need this asap. &lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/Smile.gif" border="0" title="Smile"&gt; &lt;br&gt;</description><pubDate>Wed, 01 Oct 2008 09:16:35 GMT</pubDate><dc:creator>simply_me</dc:creator></item><item><title>filling data in combo box from SQL server</title><link>http://www.a1vbcode.com/vbforums/Topic25445-4-1.aspx</link><description>&lt;DIV id=post_message_82987&gt;Dear all, &lt;BR&gt;&lt;BR&gt;I wanted to fill the combo box with the data from my SQL server database.&lt;BR&gt;There are two column in the table, product_id and product_name.&lt;BR&gt;&lt;BR&gt;for example:&lt;BR&gt;&lt;BR&gt;product_id| product_name&lt;BR&gt;---------- -------------- &lt;BR&gt;1| pencil&lt;BR&gt;2| NoteBook&lt;BR&gt;&lt;BR&gt;I was successful in displaying the product name in combo box. The code is given below. I wanted to show the product_name in the combo box and when the user selects the product_name from combo box i should be able to get its product_id. How do i do it? Please help me guys for my academic project.&lt;BR&gt;&lt;BR&gt;Below is my code.&lt;BR&gt;&lt;BR&gt;Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load&lt;BR&gt;&lt;BR&gt;Dim conn As New System.Data.SqlClient.SqlConnection("Network Library=DBMSSOCN;" &amp;amp; "Data Source=abacus\mydatabase;" &amp;amp; "Initial Catalog=CADCAM2;" &amp;amp; "Integrated Security =True;" &amp;amp; "MultipleActiveResultSets=True;")&lt;BR&gt;Dim strSQL As String = "SELECT * FROM product"&lt;BR&gt;Dim da As New System.Data.SqlClient.SqlDataAdapter(strSQL, conn)&lt;BR&gt;Dim ds As New DataSet&lt;BR&gt;da.Fill(ds, "product")&lt;BR&gt;&lt;BR&gt;With Me.cmbDropDown&lt;BR&gt;.DataSource = ds.Tables("product")&lt;BR&gt;.DisplayMember = "product_name"&lt;BR&gt;.ValueMember = "product_id"&lt;BR&gt;.SelectedIndex = 0&lt;BR&gt;End With&lt;BR&gt;&lt;BR&gt;end sub&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;Private Sub cmbCproduct_SelectedValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmbCproduct.SelectedValueChanged&lt;BR&gt;&lt;BR&gt;&lt;FONT color=red&gt;'when the user selects the product_name from the combo box i should be able to get the product_id.&lt;/FONT&gt;&lt;BR&gt;End Sub&lt;/DIV&gt;&lt;!-- / message --&gt;&lt;DIV style="MARGIN-TOP: 10px" align=right&gt;&lt;!-- controls --&gt;&lt;IMG id=progress_82987 style="DISPLAY: none" alt="" src="http://vbdotnetforums.com/images/misc/progress.gif"&gt;&lt;/DIV&gt;</description><pubDate>Tue, 22 Jul 2008 10:50:48 GMT</pubDate><dc:creator>buffdaemon_live</dc:creator></item><item><title>DataGridView update problem</title><link>http://www.a1vbcode.com/vbforums/Topic25630-4-1.aspx</link><description>Hi,&lt;br&gt;(This post with pictures: &lt;a href="http://www.ti.rs/problem/problem.html" target=_"blank" class="SmlLinks"&gt;http://www.ti.rs/problem/problem.html&lt;/a&gt;) - recomended for understanding&lt;br&gt;&lt;br&gt;Short intro: Program is for managing supplies of the restaurant&lt;br&gt;There are simple items to sell or complex items with ingredients. This part of program manage complex items with ingredients.&lt;br&gt;&lt;br&gt;There is DataGridView, on the form which is fill by: Me.MagacinSlozeniTableAdapter.Fillby(Me.KonobarDataSet.MagacinSlozeni, BrojID)&lt;br&gt;&lt;br&gt;Using combobox in Datagridview I chose Items, if item is complex, already with ingredients I fill table with:&lt;br&gt;Me.MagacinSlozeniTableAdapter.ClearBeforeFill = False&lt;br&gt;Me.MagacinSlozeniTableAdapter.FillByMagacinID(Me.KonobarDataSet.MagacinSlozeni, BrojID, KolicinaID, MagacinID)&lt;br&gt;&lt;br&gt;Problem is when I fill items with, ingredients, it is shown in DataGridView but NOT update to database&lt;br&gt;All items which are chosen manualy from combo box is updated, but programmatically added items NOT&lt;br&gt;&lt;br&gt;</description><pubDate>Sun, 31 Aug 2008 09:23:44 GMT</pubDate><dc:creator>Vladimir Nikitovic</dc:creator></item><item><title>Database login failed</title><link>http://www.a1vbcode.com/vbforums/Topic25531-4-1.aspx</link><description>&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Times New Roman','serif'"&gt;&lt;P&gt;&lt;FONT face=Arial&gt; I try to access a same database using two different system,&lt;BR&gt;&lt;BR&gt;a) a window based system and &lt;BR&gt;b) a web based system.&lt;BR&gt;&lt;BR&gt;Both are using VB.NET.  But it seem like the there is either one of them can access the database at a time. When one of them running, the other system unable to access. The error is &lt;BR&gt;&lt;BR&gt;"&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Times New Roman','serif'"&gt;Cannot open user default database. Login failed. Login failed for user 'PY1234\Jen'.&lt;/SPAN&gt;"&lt;BR&gt;&lt;BR&gt;PY1234/Jen is a window authoization.&lt;BR&gt;I was using  MS SQL Sever Express 2005 and the connection string are &lt;BR&gt;&lt;BR&gt;  &amp;lt;connectionStrings&amp;gt;&lt;BR&gt;    &amp;lt;add name="WhyWhy.My.MySettings.BookShopConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\bin\Debug\BookShop.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True"&lt;BR&gt;      providerName="System.Data.SqlClient" /&amp;gt;&lt;BR&gt;  &amp;lt;/connectionStrings&amp;gt;&lt;BR&gt;&lt;BR&gt;As a conclusion i need the database to be  connected by multiuser at the same time&lt;BR&gt;Any help is appreciated. &lt;/FONT&gt;&lt;/P&gt;&lt;/SPAN&gt;</description><pubDate>Wed, 06 Aug 2008 21:58:25 GMT</pubDate><dc:creator>kwan_kwan08</dc:creator></item><item><title>VB 6.0 Database</title><link>http://www.a1vbcode.com/vbforums/Topic24001-4-1.aspx</link><description>I'm doing VB code in the MS-Access. How is this? Is this the good practice for programming?&lt;/P&gt;&lt;P&gt;Thank you.</description><pubDate>Mon, 21 Jan 2008 10:33:55 GMT</pubDate><dc:creator>zaga143</dc:creator></item><item><title>Multi Select Terms And Conditions</title><link>http://www.a1vbcode.com/vbforums/Topic25379-4-1.aspx</link><description>Hi, &lt;br&gt;&lt;br&gt;I am coding a client/server application which needs the user to select and save multiple terms and conditions through a form. Each clause (terms and conditons) can be of any length. These terms and conditions will change for each master record and hence the user should be able to select which to include and exclude from the final printout. &lt;br&gt;&lt;br&gt;What should be the best logic and method to implement this considering the fact that the database will grow very big over a period of time? Please assist. Its urgent. &lt;br&gt;&lt;br&gt;Front-end IDE: VB6 &lt;br&gt;Database MS Access (To be changed to server class later on) &lt;br&gt;&lt;br&gt;Thanks in advance, &lt;br&gt;&lt;br&gt;Tom</description><pubDate>Mon, 14 Jul 2008 05:52:49 GMT</pubDate><dc:creator>Tom_da_hawk</dc:creator></item><item><title>Transfer Data from One Table to another</title><link>http://www.a1vbcode.com/vbforums/Topic25500-4-1.aspx</link><description>Please Master's,&lt;br&gt;&lt;br&gt;I am working on a project. After making use of the Data in Publish(Table)  I want it to transfer to Publish_Archive (Table) for history purpose, on a single command button click. The two table located on single Database in VB6.&lt;br&gt;&lt;br&gt;&lt;br&gt;Please I need you answer.&lt;br&gt;&lt;br&gt;Thanks&lt;br&gt;</description><pubDate>Sun, 03 Aug 2008 20:19:52 GMT</pubDate><dc:creator>corelbasic</dc:creator></item><item><title>Database login failed</title><link>http://www.a1vbcode.com/vbforums/Topic25530-4-1.aspx</link><description> I try to access a same database using two different system,&lt;BR&gt;&lt;BR&gt;a) a window based system and &lt;BR&gt;b) a web based system.&lt;BR&gt;&lt;BR&gt;Both are using VB.NET.  But it seem like the there is either one of them can access the database at a time. When one of them running, the other system unable to access. The error is &lt;BR&gt;&lt;BR&gt;"&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Times New Roman','serif'"&gt;Cannot open user default database. Login failed. Login failed for user 'PY1234\Jen'.&lt;/SPAN&gt;"&lt;BR&gt;&lt;BR&gt;PY1234/Jen is a window authoization.&lt;BR&gt;I was using  MS SQL Sever Express 2005 and the connection string are &lt;BR&gt;&lt;BR&gt;  &amp;lt;connectionStrings&amp;gt;&lt;BR&gt;    &amp;lt;add name="WhyWhy.My.MySettings.BookShopConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\bin\Debug\BookShop.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True"&lt;BR&gt;      providerName="System.Data.SqlClient" /&amp;gt;&lt;BR&gt;  &amp;lt;/connectionStrings&amp;gt;&lt;BR&gt;&lt;BR&gt;As a conclusion i need the database to be  connected by multiuser at the same time&lt;BR&gt;Any help is appreciated.</description><pubDate>Wed, 06 Aug 2008 21:56:11 GMT</pubDate><dc:creator>kwan_kwan08</dc:creator></item><item><title>Edit &amp; Save Data</title><link>http://www.a1vbcode.com/vbforums/Topic25481-4-1.aspx</link><description>My friends &amp; I have a problem with our one of the table of our SQL Data...&lt;br&gt;&lt;br&gt;One of our Table Column shows like this when we view it in sql :&lt;br&gt;&lt;br&gt;ChaInvent&lt;br&gt; (Binary)&lt;br&gt;&lt;br&gt;&lt;br&gt;We dont know how to read &amp; edit inside that CharInvent..??&lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/BigGrin.gif" border="0" title="BigGrin"&gt;&lt;br&gt;That ChaInvent has all the information we need because that is place  where are all the Inventory on the Game of the Character stored like weapons, armors, potion, ..etc..haysss..Any Help here?&lt;br&gt;&lt;br&gt;Are there VB code that will help us here or any script or program??  I tried to search all the Info here but NO LUCK...&lt;br&gt;</description><pubDate>Tue, 29 Jul 2008 23:01:34 GMT</pubDate><dc:creator>jessgab</dc:creator></item><item><title>excel printout</title><link>http://www.a1vbcode.com/vbforums/Topic25472-4-1.aspx</link><description>how could i print out my report using excel instead of datareport?</description><pubDate>Sat, 26 Jul 2008 08:16:30 GMT</pubDate><dc:creator>ramciv</dc:creator></item><item><title>stored procedures in the database</title><link>http://www.a1vbcode.com/vbforums/Topic25413-4-1.aspx</link><description>please help me.. why are codes placed in the stored procedures of the database and not in the web forms? what are the advantages? please please help me! thanks!</description><pubDate>Thu, 17 Jul 2008 09:47:13 GMT</pubDate><dc:creator>sbcm1125</dc:creator></item><item><title>need help in viewing records from access to listview</title><link>http://www.a1vbcode.com/vbforums/Topic25336-4-1.aspx</link><description>hi everyone. im new in vb6 and i want to view my records from microsoft access to my listview in the form. can anyone help me with this problem. please.i really want to view my records in listview including the columns.. please help me. please.thanx in advance..</description><pubDate>Thu, 03 Jul 2008 12:12:12 GMT</pubDate><dc:creator>huxley</dc:creator></item><item><title>Need Help Connecting to a Access Database on the Internet</title><link>http://www.a1vbcode.com/vbforums/Topic25332-4-1.aspx</link><description>I am trying to connect my vB6 program to an internet database. I am using an Access database, and its uploaded on the internet. I have the site.&lt;br&gt;&lt;br&gt;http://users6.nofeehost.com/SpyderZ/Db/Dbinventory.mdb&lt;br&gt;&lt;br&gt;The host supports Microsoft Access databases, and I have been trying to piece together a code that allows it to connect for the login process.&lt;br&gt;&lt;br&gt;The problem is, I can only get the program to work when the database is local, but when its on the internet, I can't seem to get it to connect. I need it to say connected so it can login.&lt;br&gt;&lt;br&gt;Here is the code I am using:&lt;br&gt;[code]Private Sub Form_Load()&lt;br&gt;Dim strconn As String&lt;br&gt;flag = False&lt;br&gt;flag2 = False&lt;br&gt;Set conn = Server("ADODB.Connection")&lt;br&gt;strconn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &amp; ";Persist Security Info=False"&lt;br&gt;Server = "http://users6.nofeehost.com/SpyderZ"&lt;br&gt;Source = "/Db/Dbinventory.mdb"&lt;br&gt;conn.ConnectionString = strconn&lt;br&gt;conn.Open&lt;br&gt;End Sub[/code]&lt;br&gt;&lt;br&gt;Someone please help me!</description><pubDate>Tue, 01 Jul 2008 14:12:17 GMT</pubDate><dc:creator>SpyderZ</dc:creator></item><item><title>VB.net and MySQL</title><link>http://www.a1vbcode.com/vbforums/Topic25323-4-1.aspx</link><description>using VB.net and creating a new database project, why wont VB.Net see the MySQL program running so that i may use it as my database source?</description><pubDate>Sat, 28 Jun 2008 19:08:35 GMT</pubDate><dc:creator>warped</dc:creator></item><item><title>Tutorials?</title><link>http://www.a1vbcode.com/vbforums/Topic20935-4-1.aspx</link><description>Does anyone know of a tutorial (written in basic, easy to understand) that can teach me how to read and write from a database.&lt;br&gt;&lt;br&gt;I know what a database is, I know what a Type declaration is and does, but getting stuff to and from a file is something I can't seem to manage (basic text is all I can manage).&lt;br&gt;&lt;br&gt;As the description to my post says, all I get are really advanced complex stuff on databases, or ones that don't actually tell me what the code is doing ("yes, declare this and pass it by this function. This is the important bit, but sucks to be you..." :rolleyes&lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/Smile.gif" border="0" title="Smile"&gt;.&lt;br&gt;&lt;br&gt;Thx&lt;br&gt;</description><pubDate>Tue, 12 Dec 2006 15:17:35 GMT</pubDate><dc:creator>purpulfantom</dc:creator></item><item><title>save image in sql database</title><link>http://www.a1vbcode.com/vbforums/Topic25198-4-1.aspx</link><description>hi all &lt;P&gt;I am learning sql and i have created one small application with one table with ImageID and Pic as two columns, it works fine i can add new image in to database and i can also delete saved image from database, but main problem is when ever i made any changes to database it doesn't show any changes to form i mean it's not refreshing database or dataset &lt;/P&gt;&lt;P&gt;here is the few code for it &lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Private&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; LoadImages()&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Try&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;conImage = GetDBConnection()&lt;/P&gt;&lt;P&gt;dsImage.Clear()&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Me&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.daImage.Fill(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Me&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.dsImage.Images)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Catch&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; ex &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; Exception&lt;/P&gt;&lt;P&gt;MsgBox(ex.Message)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Try&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;conImage.Close()&lt;/P&gt;&lt;P&gt;conImage.Dispose()&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Call&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; PoChng()&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;this is for save and delete click event code&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Private&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; Button4_Click(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;ByVal&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; sender &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; System.Object, &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;ByVal&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; e &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; System.EventArgs) &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Handles&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; Button4.Click&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;'get sql connection&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Try&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;conImage = GetDBConnection()&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; sSQL &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;String&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; = &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"INSERT INTO Images (Pic) VALUES(@pic)"&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;commImage = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;New&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; Data.SqlClient.SqlCommand(sSQL, conImage)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Call&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; GetImage()&lt;/P&gt;&lt;P&gt;commImage.ExecuteNonQuery()&lt;/P&gt;&lt;P&gt;MessageBox.Show(&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"Image successfuly saved in database"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;, &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"Image Load"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Catch&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; ex &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; Exception&lt;/P&gt;&lt;P&gt;MsgBox(ex.Message)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Try&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;commImage.Dispose()&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;conImage.Close()&lt;/P&gt;&lt;P&gt;conImage.Dispose()&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Call&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; LoadImages()&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Private&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; Button5_Click(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;ByVal&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; sender &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; System.Object, &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;ByVal&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; e &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; System.EventArgs) &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Handles&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; Button5.Click&lt;/P&gt;&lt;P&gt;SelectedImage = (&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"DELETE FROM Images WHERE ImageID = "&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &amp;amp; txtImageFile.Text)&lt;/P&gt;&lt;P&gt;conImage = GetDBConnection()&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Try&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;commImage = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;New&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; Data.SqlClient.SqlCommand(SelectedImage, conImage)&lt;/P&gt;&lt;P&gt;commImage.ExecuteNonQuery()&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;MsgBox(&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"Image successfuly deleted from database"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;, MsgBoxStyle.Information)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Catch&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; ex &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; Exception&lt;/P&gt;&lt;P&gt;MsgBox(ex.Message)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Try&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;commImage.Dispose()&lt;/P&gt;&lt;P&gt;commImage = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Nothing&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;conImage.Close()&lt;/P&gt;&lt;P&gt;conImage.Dispose()&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Call&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; LoadImages()&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;i am stuck with this since last 3 weeks any help &lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/Crying.gif" border="0" title="Crying"&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description><pubDate>Sat, 14 Jun 2008 16:19:57 GMT</pubDate><dc:creator>bapu</dc:creator></item><item><title>coding</title><link>http://www.a1vbcode.com/vbforums/Topic25026-4-1.aspx</link><description>Hey guys i am very new to VB i am just learn, i was suppose to do a project which is a major part of my final grade i didn't understand Vb full and choose to do it on ATM's not knowing it would so complex. I have already submitted the report portion of my assignment so changing the topic is not an option. My problem that i am suppose to create a vb project for a ATM machine with the functions of withdrawing and Balance Enquiry, but i don't understand how to code for the following functions could someone please assist me. It would be most definitely appreciated</description><pubDate>Tue, 27 May 2008 14:18:54 GMT</pubDate><dc:creator>Jermaine</dc:creator></item><item><title>Export/Import Xml File TO ODBC</title><link>http://www.a1vbcode.com/vbforums/Topic25185-4-1.aspx</link><description>Hai Friends&lt;/P&gt;&lt;P&gt;Anybody knows xml file import to ODBC.. ? I need to Imort my xml file to&lt;/P&gt;&lt;P&gt;TallyODBC.&lt;/P&gt;&lt;P&gt;Thanks</description><pubDate>Fri, 13 Jun 2008 08:14:23 GMT</pubDate><dc:creator>gopinath</dc:creator></item><item><title>Coding to update a database help???</title><link>http://www.a1vbcode.com/vbforums/Topic25120-4-1.aspx</link><description>I'm wondering if anyone on here could help me out?  Im currently in college and have until today to hand in a final banking system visual basic program and I cant get the update database button to work properly and I haven't a clue why&lt;br&gt;&lt;br&gt;Heres the code:&lt;br&gt;&lt;br&gt;Private Sub cmdupdate_Click()&lt;br&gt;mytable.Close&lt;br&gt;Set mytable = mydb.OpenRecordset("table1")&lt;br&gt;mytable.MoveFirst&lt;br&gt;txttitle.Text = mytable!Title&lt;br&gt;txtfirst.Text = mytable!customer&lt;br&gt;txtsur.Text = mytable!surname&lt;br&gt;txtbalance.Text = mytable!balance&lt;br&gt;txtnumb.Text = mytable!customerid&lt;br&gt;Records = mytable.RecordCount&lt;br&gt;counter = 1&lt;br&gt;lbldisplay.Caption = Records &amp; "Records"&lt;br&gt;cmdnext.Enabled = True&lt;br&gt;End Sub&lt;br&gt;------------------------------------------&lt;br&gt;&lt;br&gt;The Error says object required on the lbldisplay line, I've set up records in a module and made it an integer, If anyone has any idea why its not working I would be so grateful of a reply&lt;br&gt;</description><pubDate>Thu, 05 Jun 2008 07:22:14 GMT</pubDate><dc:creator>unclejackb</dc:creator></item><item><title>Dataset merge</title><link>http://www.a1vbcode.com/vbforums/Topic25161-4-1.aspx</link><description>&lt;SPAN class=title&gt;Dataset merge&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;HR SIZE=1&gt;&lt;/P&gt;&lt;P&gt;Could anyone help with this question that I've got to answer as part of my course&lt;BR&gt;&lt;BR&gt;dsOne is a dataset containing 2 rows and 2 columns the columns are personid and personname, primary key of dsone is personid&lt;BR&gt;&lt;BR&gt;dsTwo is another dataset containing 1 row and 3 columns which are personid, personname and persontype&lt;BR&gt;&lt;BR&gt;One of the rows in dsone has same value in personid column as row in dstwo, no other rows have matching personid values, merge is done with this code&lt;BR&gt;&lt;BR&gt;dsone.merge(dstwo, true, missingschemaaction.add)&lt;BR&gt;&lt;BR&gt;I've got to state how many rows dsone and dstwo will have after the merge and whether or not dsone will add the persontype column&lt;BR&gt;&lt;BR&gt;I'm sure dsone will add the persontype column with the code missingschemaaction.add but not sure on how many rows each of the 2 datasets will contain, will dsone contain 3 rows (2 + 1 from merge)?&lt;BR&gt;&lt;BR&gt;Any help would be appreciated, I've looked long and hard on the web but can't see any suitable examples for this scenario&lt;BR&gt;&lt;BR&gt;Thanks in advance&lt;BR&gt;</description><pubDate>Wed, 11 Jun 2008 15:22:08 GMT</pubDate><dc:creator>SLG29</dc:creator></item><item><title>How do it ..?</title><link>http://www.a1vbcode.com/vbforums/Topic25048-4-1.aspx</link><description>Hi all, &lt;P&gt;Can any 1 please suggest me a solution for my query?&lt;/P&gt;&lt;P&gt;I have project in vb.net and database access  with ADO library &lt;/P&gt;&lt;P&gt;and i want close the recordset every once  open the form &lt;/P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;===================================== this my code ---------------------------&lt;/P&gt;&lt;P&gt;Private&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; TextBox1_LostFocus(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;ByVal&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; sender &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Object&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt;, &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;ByVal&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; e &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; System.EventArgs) &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Handles&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; TextBox1.LostFocus&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#000000&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;rs1.Open(&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"customers"&lt;/FONT&gt;&lt;FONT size=2&gt;, cn, ADODB.CursorTypeEnum.adOpenDynamic, ADODB.LockTypeEnum.adLockOptimistic)&lt;/P&gt;&lt;P&gt;rs1.MoveFirst()&lt;/P&gt;&lt;P&gt;rs1.Find(&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"cname = '"&lt;/FONT&gt;&lt;FONT size=2&gt; + TextBox1.Text + &lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"'"&lt;/FONT&gt;&lt;FONT size=2&gt;)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;/FONT&gt;&lt;FONT size=2&gt; rs1.EOF = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;True&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Then&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;MsgBox(&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"Sorry ... This customer is not registry !! "&lt;/FONT&gt;&lt;FONT size=2&gt;)&lt;/P&gt;&lt;P&gt;rs1.Close()&lt;/P&gt;&lt;P&gt;rs1 = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Nothing&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;closetext2()&lt;/P&gt;&lt;P&gt;closetext2()&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Exit&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Else&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;TextBox2.Text = rs1(&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"code"&lt;/FONT&gt;&lt;FONT size=2&gt;).Value&lt;/P&gt;&lt;P&gt;rs1.Close()&lt;/P&gt;&lt;P&gt;rs1 = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Nothing&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;=========================================================&lt;/P&gt;&lt;/FONT&gt;&lt;P&gt;Please help me....&lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/BigGrin.gif" border="0" title="BigGrin"&gt;&lt;/P&gt;&lt;P&gt;Thanx in advance &lt;/P&gt;&lt;P&gt;smart</description><pubDate>Thu, 29 May 2008 05:08:28 GMT</pubDate><dc:creator>smart sout</dc:creator></item><item><title>How do i change the text box value automatically from database when a combo box value selected?</title><link>http://www.a1vbcode.com/vbforums/Topic25036-4-1.aspx</link><description>Hi all,&lt;/P&gt;&lt;P&gt;Can any 1 please suggest me a solution for my query?&lt;/P&gt;&lt;P&gt;I have 1 combo box and 1 text box in my project. The combo box is populated thru the entries in database. For example : if i select the item name from Combo box then the rate should be automatically appeared in text box. It looks simple but i didn't got the solution for the same.&lt;/P&gt;&lt;P&gt;Please help me....&lt;/P&gt;&lt;P&gt;Thanx in advance&lt;/P&gt;&lt;P&gt;Maddy</description><pubDate>Wed, 28 May 2008 10:30:15 GMT</pubDate><dc:creator>mbhakt</dc:creator></item><item><title>Geeting all that data from the ms access databse in to a dataset</title><link>http://www.a1vbcode.com/vbforums/Topic25075-4-1.aspx</link><description>Hello all,&lt;br&gt;  I have a database with one table(EMtable) IN MsAccess database which has four fields namely Time,Weather,Drink, Medicine&lt;br&gt;and filled with values like morning ,Hot Coffee , No respetcaively&lt;br&gt;&lt;br&gt;like&lt;br&gt;&lt;br&gt;Time              Weather          Drink          Medicine&lt;br&gt;&lt;br&gt;Morning           Hot               Coffee          No&lt;br&gt;Morning          Warm              Q                No&lt;br&gt;Q                   Hot               Coffee          No&lt;br&gt;Afternoon        Hot                Q                No&lt;br&gt;&lt;br&gt;Can any one sayor provide me the code how to get this table into the dataset &lt;br&gt;&lt;br&gt;Thanking you&lt;br&gt;Keerthi&lt;br&gt;&lt;br&gt;</description><pubDate>Fri, 30 May 2008 14:32:42 GMT</pubDate><dc:creator>keerthi123</dc:creator></item><item><title>Updating Code</title><link>http://www.a1vbcode.com/vbforums/Topic25014-4-1.aspx</link><description>I have been assigned the task of updating some code which was written in an older version of vb. I am unfamiliar with the code and havent programmed in vb in quite a while.&lt;br&gt;&lt;br&gt;This function is giving me a syntax error. How would you suggest to fix this function?&lt;br&gt;&lt;br&gt;Public Function bindthissql_ODBC(ByVal fds As Object, ByVal fsql As Object) As Object&lt;br&gt;            New OdbcDataAdapter(StringType.FromObject(fsql), Me.dbconn).Fill(DirectCast(fds, DataSet), "Thedata")&lt;br&gt;            Return New DataView(DirectCast(LateBinding.LateGet(fds, Nothing, "Tables", New Object() { "Thedata" }, Nothing, Nothing), DataTable))&lt;br&gt;        End Function</description><pubDate>Mon, 26 May 2008 20:39:04 GMT</pubDate><dc:creator>GeekO</dc:creator></item><item><title>How do I connect an access database which is on web server</title><link>http://www.a1vbcode.com/vbforums/Topic25012-4-1.aspx</link><description>Hello Mater’s,&lt;br&gt;&lt;br&gt;I need to keep an access database on web server and to connect it via ado using vb6 and also how to connect to mysqldatabase on Web server.&lt;br&gt;&lt;br&gt;I ‘m working on Store Application which is need to Accesses in various Branch of the store in various area, they will use the same application in all location of the store. They will be able to interact with other store to confirm if Store A product is finish they check Store B if product exist.&lt;br&gt;&lt;br&gt;Please I need your help!&lt;br&gt;</description><pubDate>Mon, 26 May 2008 19:43:44 GMT</pubDate><dc:creator>corelbasic</dc:creator></item><item><title>hyperlinks inside datagrid...</title><link>http://www.a1vbcode.com/vbforums/Topic24954-4-1.aspx</link><description>can somebody help me in creating hyperlinks inside my datagrid using vb??? &lt;/P&gt;&lt;P&gt;mark</description><pubDate>Tue, 20 May 2008 03:47:42 GMT</pubDate><dc:creator>mcomoro</dc:creator></item><item><title>which back end database should I use in PHP?</title><link>http://www.a1vbcode.com/vbforums/Topic24940-4-1.aspx</link><description>Hi&lt;br&gt;&lt;br&gt;I am new to PHP and practicing to manage data in database...&lt;br&gt;Im just want to know about this and hope someone could help me...&lt;br&gt;* is there stored in mysql as the same with ms sql?&lt;br&gt;* on php programming, which database back end should I used? why?&lt;br&gt;* what are the advantage or disadvantage if am I going to use ms sql in php and publish it into live?&lt;br&gt;* what features in mysql that are not with mssql?&lt;br&gt;&lt;br&gt;&lt;br&gt;thanks.....&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</description><pubDate>Fri, 16 May 2008 13:45:00 GMT</pubDate><dc:creator>charliemears</dc:creator></item><item><title>Filtering recordset multiple times</title><link>http://www.a1vbcode.com/vbforums/Topic24723-4-1.aspx</link><description>I want to use filtering method of recordset in my database, how ever I would like to filter my recordset multiple times. For example lets assume that I have books and its properties in my database and I want to make a filter in that database. First I want to filter according to book name includes "Tom", let say I have 7 books includes "Tom" in it. After that I want to filter &lt;STRONG&gt;THESE&lt;/STRONG&gt; &lt;STRONG&gt;filtered&lt;/STRONG&gt; records according to their publisher name, which includes "Sunrise Publishing" and then I will have 2 records left. Thats actually what I would like to do.&lt;/P&gt;&lt;P&gt;Is there anyone who could help me about this problem of mine? Thanks in Advance.....</description><pubDate>Thu, 24 Apr 2008 10:35:03 GMT</pubDate><dc:creator>kemalaldag</dc:creator></item><item><title>printing pages</title><link>http://www.a1vbcode.com/vbforums/Topic24741-4-1.aspx</link><description>Hi Folks,&lt;/P&gt;&lt;P&gt;My name is Rita, and I'm new here. I'm working with vb 6.0 and Sql 2000.&lt;/P&gt;&lt;P&gt;I want to print datagrid control. Since datagrid control cannot mesh with report desginer, i want to have the print dialog box with all the settings with that of the report designer so that i can print all pages and zoom as well.&lt;/P&gt;&lt;P&gt;Please gurus help me out.&lt;/P&gt;&lt;P&gt;Riita</description><pubDate>Sat, 26 Apr 2008 16:50:33 GMT</pubDate><dc:creator>Ritniit</dc:creator></item><item><title>datagrid manipulation using vb.net and sql server database</title><link>http://www.a1vbcode.com/vbforums/Topic24820-4-1.aspx</link><description>[font=Arial Narrow]&lt;br&gt;&lt;br&gt;[size=7]Hi,&lt;br&gt;&lt;br&gt;I am developing window based forms connecting with sql server database. I need to capture double click events&lt;br&gt;for a datagrid and show the value of selected row in the textbox in a new form. Could someone please help me on this.&lt;br&gt;&lt;br&gt;I am using VB.NET 2003 and sql server&lt;br&gt;&lt;br&gt;Please reply.&lt;br&gt;&lt;br&gt;Cheers,&lt;br&gt;mhabhelle14[/size]&lt;br&gt;&lt;br&gt;[/font]</description><pubDate>Mon, 05 May 2008 10:47:28 GMT</pubDate><dc:creator>mhabhelle14</dc:creator></item><item><title>Inserting Images to Access / MS SQL Server DB thru VB6 Code plz help.. im using VB6+Access/SQL Server</title><link>http://www.a1vbcode.com/vbforums/Topic24881-4-1.aspx</link><description>How to Insert Images to Access / MS SQL Server DB thru VB6 Code&lt;br&gt;plz help..&lt;br&gt;im using VB6+Access/SQL Server</description><pubDate>Sun, 11 May 2008 13:31:53 GMT</pubDate><dc:creator>gul18@hotmail.com</dc:creator></item></channel></rss>