﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>A1VBCode Forums / Classic Visual Basic (VB 6 or earlier) / 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, 09 Feb 2012 03:56:49 GMT</lastBuildDate><ttl>20</ttl><item><title>Delete item in database based on date field not working</title><link>http://www.a1vbcode.com/vbforums/Topic31197-4-1.aspx</link><description>I hope someone here might have the answer&lt;br&gt;&lt;br&gt;&lt;br&gt;I have a form from where I would like to delete all records before a specified date, the form has a text field and command button that should delete records in the database older than 3 months but it does not delete the records.&lt;br&gt;&lt;br&gt;the code on my form is as follows&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;[code]Private Sub Form_Load()&lt;br&gt;Dim test As String&lt;br&gt;&lt;br&gt;test = DateAdd("m", -3, Now)    'this uses the current date and subtract 3 months&lt;br&gt;Text1.Text = test&lt;br&gt;Text1.Text = Format$(test, "mm/dd/yyyy")&lt;br&gt;&lt;br&gt;End Sub &lt;br&gt;&lt;br&gt;&lt;br&gt;Private Sub Command1_Click()&lt;br&gt;&lt;br&gt;Dim cs As New ADODB.Connection&lt;br&gt;Dim rec As New ADODB.Recordset&lt;br&gt;Dim flds As New ADODB.Recordset&lt;br&gt;&lt;br&gt;cs.ConnectionString = "Provider =Microsoft.Jet.OLEDB.4.0;" &amp; _&lt;br&gt;                    "Data Source=" &amp; "C:\Program Files\Hazmat Control\HazMat.mdb"&lt;br&gt;cs.Open&lt;br&gt;&lt;br&gt;Dim date1 As String&lt;br&gt;cs.BeginTrans&lt;br&gt;cs.Execute "DELETE * From ControlDetailsA where Date &lt;= " &amp; Text1.Text    'date is the field in the access table&lt;br&gt;cs.CommitTrans&lt;br&gt;&lt;br&gt;End Sub[/code]&lt;br&gt;&lt;br&gt;&lt;b&gt;If I however change the code to delete by control number then it is successful. Looks like I am missing something when trying to use the date field to select the records.&lt;/b&gt;&lt;br&gt;</description><pubDate>Sat, 04 Feb 2012 15:57:39 GMT</pubDate><dc:creator>Raycomp</dc:creator></item><item><title>delete does not affect database!</title><link>http://www.a1vbcode.com/vbforums/Topic30673-4-1.aspx</link><description>Hi to all.. &lt;br&gt;i have ha problem with my delete menustrip item...&lt;br&gt;&lt;br&gt;when i click yes to the verification msgbox, the row i selected is deleted.&lt;br&gt;but when i click on another button , the row returns!!!&lt;br&gt;it does not seem to affect the underlying database..&lt;br&gt;i've seached google, but so far, i still haven't found an answer...&lt;br&gt;thanks in advance..&lt;br&gt;&lt;br&gt;codecodecode:&lt;br&gt;&lt;br&gt;Private Sub DeleteItemToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DeleteItemToolStripMenuItem.Click&lt;br&gt;        dgvLadies.DataSource = vbNull&lt;br&gt;        dsLadies = New DataSet()&lt;br&gt;&lt;br&gt;        daProducts.Fill(dsLadies, "products")&lt;br&gt;        dgvLadies.DataSource = dsLadies.Tables(0)&lt;br&gt;        dgvLadies.Visible = True&lt;br&gt;&lt;br&gt;        If MsgBox("Do you want to delete this row ?", MessageBoxButtons.YesNo) = DialogResult.Yes Then&lt;br&gt;            dsLadies.Tables("products").Rows.RemoveAt(dgvLadies.CurrentRow.Index)&lt;br&gt;            dgvLadies.Rows.RemoveAt(dgvLadies.CurrentRow.Index)&lt;br&gt;        End If&lt;br&gt;        daProducts.Update(dsLadies, "products")&lt;br&gt;    End Sub</description><pubDate>Sun, 02 Oct 2011 12:53:41 GMT</pubDate><dc:creator>maia_18</dc:creator></item><item><title>vb6 and sql 2005 multi user problem</title><link>http://www.a1vbcode.com/vbforums/Topic31160-4-1.aspx</link><description>Dear All !&lt;br&gt;&lt;br&gt;I upgrade (vb6 and access)application to sql server 2005 application(changed back end to sql). I have 2 forms, one is "Voucher" and another one is "reprint voucher".&lt;br&gt;2 forms use same one database table (gridVoucher), which is link to LIST VIEW.&lt;br&gt;&lt;br&gt;When 1st user use "voucher form" (she is opening new voucher for her customer ). and 2nd user view her previous voucher with "reprintVoucher form" at the same time. gridVoucher is replace by reprintVoucher form. Then 1st user save his voucher, stock&lt;br&gt;items wrong. I use INSERT INTO statement to save voucher data. (INSERT INTO VoucherDetail SELECT * FROM gridVoucher) at "voucher form".&lt;br&gt;&lt;br&gt;I want to lock gridVoucher table when it is used by user.&lt;br&gt;Please give advise better suggestion for this problem.&lt;br&gt;&lt;br&gt;Yours&lt;br&gt;june1282</description><pubDate>Tue, 17 Jan 2012 01:58:15 GMT</pubDate><dc:creator>june1282</dc:creator></item><item><title>speed up select distinct - access database and vb6 classic</title><link>http://www.a1vbcode.com/vbforums/Topic31159-4-1.aspx</link><description>I need to speed up this sql select distinct:&lt;br&gt;&lt;br&gt;my conn:&lt;br&gt;&lt;br&gt;Public Sub APRI_CONNESSIONE3()&lt;br&gt;&lt;br&gt;    On Error GoTo Err_SomeName&lt;br&gt;&lt;br&gt;    Set CONN3 = Nothing&lt;br&gt;    Set CONN3 = New ADODB.Connection&lt;br&gt;    With CONN3&lt;br&gt;        .Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\REPORT_L0\DATABASE\" &amp; MIO_DB &amp; "-L0_TEST.mdb;Persist Security Info=False"&lt;br&gt;    End With&lt;br&gt;&lt;br&gt;Exit_SomeName:&lt;br&gt;    Exit Sub&lt;br&gt;&lt;br&gt;Err_SomeName:&lt;br&gt;    MsgBox Err.Number &amp; Err.Description&lt;br&gt;    Resume Exit_SomeName&lt;br&gt;&lt;br&gt;End Sub&lt;br&gt;&lt;br&gt;&lt;br&gt;my select distinct:&lt;br&gt;&lt;br&gt;    Set RST0 = Nothing&lt;br&gt;    Set RST0 = New ADODB.Recordset&lt;br&gt;    RST0.CursorLocation = adUseClient&lt;br&gt;    'RST0.CacheSize = 500&lt;br&gt;&lt;br&gt;        SQL = "SELECT DT FROM L0_SI WHERE (CONTAB='" &amp; TEST_CONTAB &amp; "') GROUP BY DT"&lt;br&gt;        DoEvents&lt;br&gt;        RST0.Open SQL, CONN3, adOpenForwardOnly, adLockReadOnly, adCmdText&lt;br&gt;&lt;br&gt;&lt;br&gt;note:&lt;br&gt;&lt;br&gt;- CONTAB and DT fields are indexed&lt;br&gt;- records in table are approx 1.500.xxx</description><pubDate>Tue, 17 Jan 2012 00:51:44 GMT</pubDate><dc:creator>sal21</dc:creator></item><item><title>Insert with Where clause statement</title><link>http://www.a1vbcode.com/vbforums/Topic30433-4-1.aspx</link><description>Hello&lt;br&gt;&lt;br&gt;I've been trying to get this SQL statement working for ages now and came across this website!&lt;br&gt;&lt;br&gt;It's probably really simple but any help would be great.&lt;br&gt;&lt;br&gt;"INSERT INTO Images (PicName) VALUES (" &amp; TextBox1.Text &amp; ") WHERE ImageID = " &amp; Summary&lt;br&gt;&lt;br&gt;I get an error message 'Missing ; at the end of SQL statement'&lt;br&gt;&lt;br&gt;I'm using a Access database back end.&lt;br&gt;&lt;br&gt;Thank you&lt;br&gt;&lt;br&gt;</description><pubDate>Sun, 12 Jun 2011 08:53:34 GMT</pubDate><dc:creator>mjshort88</dc:creator></item><item><title>how to connect vb to SQL</title><link>http://www.a1vbcode.com/vbforums/Topic28222-4-1.aspx</link><description>helo.. everyone...! I am Marpaul and i want to know how to connect SQL database to Visual basic.&lt;br&gt;i am bigginer for programming..Please help me..&lt;br&gt;my email add Mr.Emopaul@yahoo.com&lt;br&gt;thanks..</description><pubDate>Tue, 22 Sep 2009 01:52:51 GMT</pubDate><dc:creator>Mr.Emopaul</dc:creator></item><item><title>editing database entries</title><link>http://www.a1vbcode.com/vbforums/Topic31065-4-1.aspx</link><description>I need to change a value in my database lto a different value.&lt;br&gt;Lets say my table is called downloads and the 6th row is called surl&lt;br&gt;&lt;br&gt;Now theres a url in there thats wrong but it retirn abouty more ythen 100 times how can i change hxxp://blabla.com/iphoney to hxxp://blablah.com&lt;br&gt;&lt;br&gt;I never needed to edit anything begore lol so if someone can lend a hand would be cool</description><pubDate>Mon, 19 Dec 2011 06:28:54 GMT</pubDate><dc:creator>Teresalk</dc:creator></item><item><title>Connection</title><link>http://www.a1vbcode.com/vbforums/Topic28577-4-1.aspx</link><description>Hi everyone,&lt;P&gt;I want to know how can I connect to an external database via vb.net.&lt;/P&gt;&lt;P&gt;Thank you</description><pubDate>Fri, 25 Dec 2009 12:19:43 GMT</pubDate><dc:creator>mohamedsamir3000</dc:creator></item><item><title>Any Column Select</title><link>http://www.a1vbcode.com/vbforums/Topic30889-4-1.aspx</link><description>Hi,&lt;br&gt;&lt;br&gt;I have a value which I don't know which column this belongs to in the table. So is there a way I get get those rows that contain this value using query?&lt;br&gt;&lt;br&gt;Thanks</description><pubDate>Tue, 08 Nov 2011 12:48:16 GMT</pubDate><dc:creator>shers</dc:creator></item><item><title>problem in the connection of Oracle DataBase</title><link>http://www.a1vbcode.com/vbforums/Topic30338-4-1.aspx</link><description>Hi ,&lt;br&gt;i have visual basic6 application, and i instaled it as  setup on the client&lt;br&gt;&lt;br&gt;this application should connect remotely via a network  with oracle database&lt;br&gt;put on another device&lt;br&gt;i used this connection string :&lt;br&gt;&lt;br&gt;If oconn.State = 1 Then oconn.Close&lt;br&gt; oconn.Open "Provider=msdaora;Data Source=orcl;User Id=FIN;Password=FIN;"&lt;br&gt;&lt;br&gt;i have this error in the image attached&lt;br&gt;&lt;br&gt;so ...please help me to solve this problem&lt;br&gt;or&lt;br&gt;what i need to download (tools,provider)&lt;br&gt;to let vb application to connect to oracle database remotely&lt;br&gt;&lt;br&gt;thankx 4 all&lt;br&gt;&lt;br&gt;</description><pubDate>Wed, 27 Apr 2011 04:07:53 GMT</pubDate><dc:creator>hassaco</dc:creator></item><item><title>Multiple Bulk Inserts</title><link>http://www.a1vbcode.com/vbforums/Topic30608-4-1.aspx</link><description>i have a need to perform multiple bulk inserts into 3 different tables within a transaction so that if any 1 of the 3 fails then ALL are rolled back.&lt;/P&gt;&lt;P&gt;i have read up on this article which implies it can be done &lt;A href="http://msdn.microsoft.com/en-us/library/tchktcdk(v=VS.90).aspx"&gt;http://msdn.microsoft.com/en-us/library/tchktcdk(v=VS.90).aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;but it doesnt really show how do what i need to do...&lt;/P&gt;&lt;P&gt;anyone any experience here would be greatly appreciated....</description><pubDate>Sat, 27 Aug 2011 06:00:14 GMT</pubDate><dc:creator>davrook</dc:creator></item><item><title>Read Filemaker database</title><link>http://www.a1vbcode.com/vbforums/Topic30438-4-1.aspx</link><description>How to read filemaker database from windows OS using vb</description><pubDate>Mon, 13 Jun 2011 09:58:39 GMT</pubDate><dc:creator>SDK</dc:creator></item><item><title>Out of Present Range</title><link>http://www.a1vbcode.com/vbforums/Topic10605-4-1.aspx</link><description>Hi i got an error while inserting into database&lt;br&gt;4/11/2005 10:34:27 AM Err Num: -2147352566  Err Desc: Out of present range.&lt;br&gt;Actually i was able to insert many records but suddenly i got this message. What does this mean. Could anyone help me please.&lt;br&gt;</description><pubDate>Wed, 13 Apr 2005 10:32:57 GMT</pubDate><dc:creator>vasanthsr_23</dc:creator></item><item><title>Link More than 1 table to Datareport</title><link>http://www.a1vbcode.com/vbforums/Topic30388-4-1.aspx</link><description>Can I link two tables and more for one datareport But I want it By ADO technologie&lt;br&gt;I'm waiting</description><pubDate>Tue, 17 May 2011 11:08:47 GMT</pubDate><dc:creator>Naas Si Ahmed</dc:creator></item><item><title>createing 2 or more tables</title><link>http://www.a1vbcode.com/vbforums/Topic30337-4-1.aspx</link><description>I might just be one of the few that just can't get it.......&lt;P&gt;If someone can explain it to me in a 2nd grade level (step by step) I would be very appreciative.....&lt;/P&gt;&lt;P&gt;I have 2 tables:&lt;/P&gt;&lt;P&gt;table 1: first_name, last_name, ssn, city&lt;/P&gt;&lt;P&gt;table 2: charge, chargecity, chargestate, chargeamount (which these are for charges when someone is arrested)&lt;/P&gt;&lt;P&gt;I can create one table and everything is just fine in my windows form (visual studio 2008 pro)&lt;/P&gt;&lt;P&gt;However, when I create 2 tables (like above) I can not get the "charges" to associate with the last_name. I have to add another entry which would cause duplicate records for one person.&lt;/P&gt;&lt;P&gt;Example: when a person goes to jail they get a charge (DWI). When the person goes to jail again they get another charge but I can't seem to find how to add it to the person already in my database.  If last_name is the primary key I don't understand how to add another charge and it show up under the persons name in my datagrid.&lt;/P&gt;&lt;P&gt;If I had one table everything would be fine, however, I would have to keep changing the charge instead of creating a "running total"&lt;/P&gt;&lt;P&gt;Am I not getting something here???&lt;/P&gt;&lt;P&gt;Hope this is simple to read&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;daveofv</description><pubDate>Sun, 24 Apr 2011 00:14:07 GMT</pubDate><dc:creator>daveofgv</dc:creator></item><item><title>how to add data into textboxes</title><link>http://www.a1vbcode.com/vbforums/Topic30312-4-1.aspx</link><description>Hi&lt;br&gt;&lt;br&gt;I'm using Access 2003 and vb.net 2005&lt;br&gt;&lt;br&gt;I was able to link a combobox with my database so now I need to know how I can link the information on my combobox to a listbox and then to a textbox. What I'm trying to do is when I select an item from my combobox it has to appear in the listbox and then I click on the calculate buttonn and the price of the item appears in the textbox. Is there a way to do it?</description><pubDate>Sun, 17 Apr 2011 06:50:09 GMT</pubDate><dc:creator>cerberus478</dc:creator></item><item><title>Need Urgent Help - Text to Grid</title><link>http://www.a1vbcode.com/vbforums/Topic30188-4-1.aspx</link><description>Dear Friends,&lt;br&gt;&lt;br&gt;Once again i am coming with a new request.&lt;br&gt;&lt;br&gt;Now i am doing one Estate Project using VB6 and MS-SQL.&lt;br&gt;&lt;br&gt;Now i am facing one problem now.&lt;br&gt;&lt;br&gt;I am enclosing herewith a screenshot for your kind perusal.&lt;br&gt;&lt;br&gt;I need 2 things.&lt;br&gt;&lt;br&gt;1. There are 4 Text boxes and 3 combo boxes...Some calculations is also there. After complete the 1st entry, if i press "Add+" Button, the values must go to Grid and text boxes must clear. Now 2nd Entry, Again i will press "Add+" button, the 2nd row values must go to Grid....Likewise, "n" no. of rows must go to grid.&lt;br&gt;&lt;br&gt;2. Consider, i have enter 38 or 50 rows, Now i will press "Update" button, the grid values will store into appropriate fields in Database.&lt;br&gt;&lt;br&gt;3. After successful saved, in future if need, i must edit a particular row in that grid. If i click a particular row in grid, the values will come to appropriate text boxes and combo boxes.&lt;br&gt;&lt;br&gt;I need code help for the above needs. I am expecting your valueble reply soon.&lt;br&gt;&lt;br&gt;Thanks &amp; Regards,&lt;br&gt;&lt;br&gt;Guna</description><pubDate>Tue, 15 Mar 2011 06:25:43 GMT</pubDate><dc:creator>gunapriyan</dc:creator></item><item><title>Database management</title><link>http://www.a1vbcode.com/vbforums/Topic30172-4-1.aspx</link><description>How can i configure the refresh method of a database ,i have tried severally and still keep on getting runtime errors</description><pubDate>Fri, 11 Mar 2011 04:54:23 GMT</pubDate><dc:creator>G-Raha</dc:creator></item><item><title>Datagrid</title><link>http://www.a1vbcode.com/vbforums/Topic29861-4-1.aspx</link><description>when i select a row how can i know that this row is selected tell me by the coding.&lt;/P&gt;&lt;P&gt;thanks</description><pubDate>Thu, 23 Dec 2010 13:24:22 GMT</pubDate><dc:creator>Kulfi_Kulfi</dc:creator></item><item><title>VS 2008 dataset bound datagridview not showing the data inserted by other form</title><link>http://www.a1vbcode.com/vbforums/Topic29846-4-1.aspx</link><description>&lt;DIV itxtvisited="1"&gt;I am creating one application using visual basic.net and sqlce&lt;BR itxtvisited="1"&gt;I have two forms name Form1 and Form2.&lt;BR itxtvisited="1"&gt;&lt;BR itxtvisited="1"&gt;I used Form1 to add data to database using OLeDb command &lt;BR itxtvisited="1"&gt;I used Form2 to show data in datagridview by using dataset&lt;BR itxtvisited="1"&gt;&lt;BR itxtvisited="1"&gt;I used following code:&lt;BR itxtvisited="1"&gt;&lt;BR itxtvisited="1"&gt;FFORM1 CODE is as following&lt;BR itxtvisited="1"&gt;&lt;BR itxtvisited="1"&gt;&lt;BR itxtvisited="1"&gt;&lt;FONT style="BACKGROUND-COLOR: #ffffff" color=#1111dd&gt;Private Sub Add_data()&lt;BR itxtvisited="1"&gt;&lt;BR itxtvisited="1"&gt;Try&lt;BR itxtvisited="1"&gt;&lt;BR itxtvisited="1"&gt;Dim DBConn As OleDbConnection&lt;BR itxtvisited="1"&gt;Dim DBInsert As New OleDbCommand&lt;BR itxtvisited="1"&gt;&lt;BR itxtvisited="1"&gt;&lt;BR itxtvisited="1"&gt;DBConn = New OleDbConnection(Myconnection_String)&lt;BR itxtvisited="1"&gt;DBInsert.Connection = DBConn&lt;BR itxtvisited="1"&gt;DBInsert.Connection.Open()&lt;BR itxtvisited="1"&gt;&lt;BR itxtvisited="1"&gt;DBInsert.CommandText = "INSERT INTO user(name, designation, age) VALUES (" + textbox1.text + "," + textbox2.text+ "," + textbox3.text + ")" &lt;BR itxtvisited="1"&gt;&lt;BR itxtvisited="1"&gt;DBInsert.ExecuteNonQuery()&lt;BR itxtvisited="1"&gt;&lt;BR itxtvisited="1"&gt;MsgBox("Data added successfully.", MsgBoxStyle.OkOnly)&lt;BR itxtvisited="1"&gt;&lt;BR itxtvisited="1"&gt;DBConn.Close()&lt;BR itxtvisited="1"&gt;DBConn.Dispose()&lt;BR itxtvisited="1"&gt;Catch ex As System.Exception&lt;BR itxtvisited="1"&gt;MsgBox(ex.Message, MsgBoxStyle.Critical, "General Error")&lt;BR itxtvisited="1"&gt;End Try&lt;BR itxtvisited="1"&gt;End Sub&lt;BR itxtvisited="1"&gt;&lt;/FONT&gt;&lt;BR itxtvisited="1"&gt;This code insert the data succussfully&lt;BR itxtvisited="1"&gt;&lt;BR itxtvisited="1"&gt;&lt;BR itxtvisited="1"&gt;FORM 2 : In visual studio 2008 designer I added a dataset named 'mydataset' and tableadapter 'usertableadapter' and succesfully created Fill query. I added one datagridview to form2 and in design mode bind it to the mydataset and its binding source&lt;BR itxtvisited="1"&gt;&lt;BR itxtvisited="1"&gt;&lt;BR itxtvisited="1"&gt;ON FORM2 I CODE IS AS FOLLOWING.&lt;BR itxtvisited="1"&gt;&lt;BR itxtvisited="1"&gt;&lt;FONT color=#dd3333&gt;Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load&lt;BR itxtvisited="1"&gt;&lt;BR itxtvisited="1"&gt;&lt;BR itxtvisited="1"&gt;Me.userTableAdapter.Fill(Me.myDataSet.user)&lt;BR itxtvisited="1"&gt;Me.DataGridView1.Refresh()&lt;BR itxtvisited="1"&gt;End Sub&lt;BR itxtvisited="1"&gt;&lt;/FONT&gt;&lt;BR itxtvisited="1"&gt;&lt;BR itxtvisited="1"&gt;My Problem is : &lt;BR itxtvisited="1"&gt;&lt;BR itxtvisited="1"&gt;Form2 Datagridview show the old data only, it do not show the recently added data by form1. I mean when I build my application datagridview show the data which is already in the database, but it does not show the data which is added by the form1 during run time.&lt;/DIV&gt;&lt;DIV itxtvisited="1"&gt; &lt;/DIV&gt;&lt;DIV itxtvisited="1"&gt;I have tried mydataset.acceptchanges(), mydataset.getchanges() but all these not worked for me&lt;BR itxtvisited="1"&gt;&lt;BR itxtvisited="1"&gt;Some one suggested me to fill the datagridview at run time by using OLeDB command. Then I created Form3 to fill the datagridview2 by using OLedb command and datareader and found that Form3 shows the recently(added by Form1 at run time) added data. &lt;BR itxtvisited="1"&gt;&lt;BR itxtvisited="1"&gt;Use of Designer dataset is required for me , because I am using the similar dataset to create report.&lt;BR itxtvisited="1"&gt;&lt;/DIV&gt;&lt;DIV itxtvisited="1"&gt;&lt;BR itxtvisited="1"&gt;&lt;BR itxtvisited="1"&gt;How my Form2 dataset,datagridview can show the latest modified data from the database.&lt;BR itxtvisited="1"&gt;&lt;BR itxtvisited="1"&gt;Thanks &lt;/DIV&gt;</description><pubDate>Tue, 14 Dec 2010 06:55:26 GMT</pubDate><dc:creator>jazzyb</dc:creator></item><item><title>Take data from database on to a label or function for calculation</title><link>http://www.a1vbcode.com/vbforums/Topic29842-4-1.aspx</link><description>Hi&lt;br&gt;I am working on my college project and i need some help&lt;br&gt;&lt;br&gt;I have made a table and data in it&lt;br&gt;now i need to dynamically retrieve data from specific cell in that table which is used for calculation and output is showed on table&lt;br&gt;&lt;br&gt;Please tell me using a blank for and with maximum comments as possible&lt;br&gt;&lt;br&gt;pleeeeeeeeeeeese help anyone</description><pubDate>Sun, 12 Dec 2010 03:09:23 GMT</pubDate><dc:creator>girishnair12345</dc:creator></item><item><title>Accessing Query created in MS Access using visual basic 6.0</title><link>http://www.a1vbcode.com/vbforums/Topic29373-4-1.aspx</link><description>I need a solution to access query created in MS Access using Visual basic 6.0.&lt;/P&gt;&lt;P&gt;Request you to please provide me the VB code for the same.&lt;/P&gt;&lt;P&gt;Many thanks in advance.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;P&gt;&lt;A href="mailto:raja_980@rediffmail.com"&gt;raja_980@rediffmail.com&lt;/A&gt;</description><pubDate>Fri, 25 Jun 2010 02:28:19 GMT</pubDate><dc:creator>raja_980</dc:creator></item><item><title>visual basic.net</title><link>http://www.a1vbcode.com/vbforums/Topic28825-4-1.aspx</link><description>hi dear&lt;br&gt;&lt;br&gt;i am new to vb.net , and i want to add   date and time (DateTimePicker1) to my  form &lt;br&gt;then when i  save the record a wrong  date is saved to the table , my database is sql 2005 &lt;br&gt;&lt;br&gt;&lt;br&gt;  Code:     " &amp; Format(DateTimePicker1.Value, "dd/mm/yy") &amp; ") "&lt;br&gt; &lt;br&gt; Result:     1/1/1900 12:00:00 AM&lt;br&gt;&lt;br&gt;i much liked to help.............&lt;br&gt;</description><pubDate>Thu, 04 Feb 2010 02:31:40 GMT</pubDate><dc:creator>tawfiiq</dc:creator></item><item><title>How to use insert into with two set</title><link>http://www.a1vbcode.com/vbforums/Topic29761-4-1.aspx</link><description>Hi I am new to Vb6 programing.&lt;BR&gt;&lt;/P&gt;&lt;P&gt;plz help me &lt;/P&gt;&lt;P&gt;&lt;BR&gt;cn.Execute "update ctm set id=(id+1)where  id =" &amp;amp; Val(Text1.Text)&lt;/P&gt;&lt;P&gt;he is work but&lt;/P&gt;&lt;P&gt;i need use &lt;/P&gt;&lt;P&gt;cn.Execute "update ctm set id=(id+1)where  id =" &amp;amp; Val(Text1.Text) &lt;STRONG&gt;&lt;EM&gt;&lt;FONT color=#bb1111&gt;and&lt;/FONT&gt;&lt;/EM&gt;&lt;/STRONG&gt;  id=(id)where id &amp;lt; " &amp;amp; val(text1.text)"&lt;/P&gt;&lt;P&gt;how use the update in ...&lt;/P&gt;&lt;P&gt;update the ctm table &lt;/P&gt;&lt;P&gt;set &lt;/P&gt;&lt;P&gt;the id field id add one &lt;/P&gt;&lt;P&gt;if id = text1.text&lt;/P&gt;&lt;P&gt;and donot add one if the id &amp;lt; text1.text&lt;/P&gt;&lt;P&gt;plz help me &lt;/P&gt;&lt;P&gt;i wait the reply &lt;/P&gt;&lt;P&gt;bye</description><pubDate>Sat, 06 Nov 2010 09:19:19 GMT</pubDate><dc:creator>smart sout</dc:creator></item><item><title>Search</title><link>http://www.a1vbcode.com/vbforums/Topic29739-4-1.aspx</link><description>i have a text.box and what ever i enter there i want search in the database i created.&lt;/P&gt;&lt;P&gt;can any one tell me how.&lt;/P&gt;&lt;P&gt;thanks</description><pubDate>Sat, 23 Oct 2010 01:58:34 GMT</pubDate><dc:creator>Kulfi_Kulfi</dc:creator></item><item><title>Activating Access 2007?</title><link>http://www.a1vbcode.com/vbforums/Topic29649-4-1.aspx</link><description>Hi,&lt;P&gt;I recently 'upgraded' to the Office 2007 suite and I was trying to update a VB6.0 db program to handle tables in Access2007. At one point the code sets an object variable:&lt;/P&gt;&lt;P&gt;Set mdb1 = GetObject(fileToOpen)&lt;/P&gt;&lt;P&gt;fileToOpen is the full path to an Access file, whether in the old .mdb or the new .accdb format. Anyway, when that statement is executed, Access opens. Access 2002 didn't open at all but I was able to get a list of tables, select one and access its data. If I leave Access open the program executes and when the program finishes, Access closes also.&lt;/P&gt;&lt;P&gt;My question is what do I need to do to keep Access from opening or becoming visible? Its not a big deal but it is kind of annoying.</description><pubDate>Mon, 20 Sep 2010 13:33:22 GMT</pubDate><dc:creator>macroman</dc:creator></item><item><title>database changing bindingsource at runtime</title><link>http://www.a1vbcode.com/vbforums/Topic29643-4-1.aspx</link><description> HAVE ASSOCIATED A MICROSOFT ACCESS DATABASE TO A FORM USING A DATASET/BINDINGSOURCE/DATAVIEWGRID/BINDINGNAVIGATOR &lt;P&gt;EACH TIME A DIFFERENT STUDENT APPEARS AFTER USING THE BINDINGNAVIGATOR IT IS NECESSARY FOR THE PROGRAM TO LIST CLASSTIME FOR THIS STUDENT IN A NEW DATAVIEWGRID. FOR THIS I HAVE ADDED A DATASET/BINDINGSOURCE/DATAVIEWGRID&lt;/P&gt;&lt;P&gt;I HAVE A SUB AS FOLLOWS:-&lt;/P&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT size=2 face=Consolas&gt;&lt;P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;Private&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT size=2 face=Consolas&gt; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;Sub&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT size=2 face=Consolas&gt; RefreshClassTime()&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT size=2 face=Consolas&gt; sQuery &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT size=2 face=Consolas&gt; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;String&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT size=2 face=Consolas&gt; = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;""&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT size=2 face=Consolas&gt;&lt;P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT size=2 face=Consolas&gt;SQuery = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;"SELECT [Description],[Lesson], [Location], [StudentID], [CourseCode] From [ClassTime] Where ((([StudentID]) = "&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT size=2 face=Consolas&gt; &amp;amp; Val(txtStudentID.Text) &amp;amp; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;")) And (([CourseCode]) = "&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT size=2 face=Consolas&gt; &amp;amp; Val(txtCourseCode.Text) &amp;amp; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;") ORDER BY [Description];"&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT size=2 face=Consolas&gt;&lt;P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2 face=Consolas&gt;&lt;FONT color=#008000 size=2 face=Consolas&gt;&lt;FONT color=#008000 size=2 face=Consolas&gt;BindingSource_Classtime.DataSource = SQUERY&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT size=2 face=Consolas&gt;&lt;P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;End&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT size=2 face=Consolas&gt; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;Sub&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;Using this code is not working as just assigning the squery to the bindingsouce_classtime.datasource is NOT WORKING&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;Can anybody help me with this problem. I am new to vb.net&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;Thank you in anticipation&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description><pubDate>Sun, 19 Sep 2010 09:15:21 GMT</pubDate><dc:creator>timark2000</dc:creator></item><item><title>Problem Inserting values into Sql server</title><link>http://www.a1vbcode.com/vbforums/Topic29538-4-1.aspx</link><description>Hi I am new to Vb6 programing.&lt;br&gt;&lt;br&gt;I have two text boxes on the form. textX and TextY.the user will enter integer values in the text boxes.&lt;br&gt;I want to connect to sql server database "Temphome" and then insert values in table "coordinates".There are two int fields in the table X ,Y.&lt;br&gt;&lt;br&gt;How can I do that.I can find the connection code on the internet but having problem finding a simple code which only connects&lt;br&gt;and insert these values.&lt;br&gt;&lt;br&gt;thanks&lt;br&gt;ALI&lt;br&gt;&lt;br&gt;</description><pubDate>Tue, 24 Aug 2010 04:16:19 GMT</pubDate><dc:creator>itsmystuff6</dc:creator></item><item><title>Saving and retrieving image in Ms sql server 2008 using vb.net</title><link>http://www.a1vbcode.com/vbforums/Topic29500-4-1.aspx</link><description>hi guys&lt;br&gt;i need help on how to save and retrieve image in ms sql server 2008 using vb.net, i have tried to use FILESTREAM but it does not store the image</description><pubDate>Wed, 11 Aug 2010 16:07:14 GMT</pubDate><dc:creator>almauly</dc:creator></item><item><title>datagrid with dao</title><link>http://www.a1vbcode.com/vbforums/Topic29176-4-1.aspx</link><description>i want to display the data in datagrid by using dao . how to write the code in vb6 .</description><pubDate>Tue, 20 Apr 2010 12:58:54 GMT</pubDate><dc:creator>phi</dc:creator></item><item><title>Add a new record in Access</title><link>http://www.a1vbcode.com/vbforums/Topic29328-4-1.aspx</link><description>I having problems adding new records:&lt;/P&gt;&lt;P&gt; I created a form, where I created all the objects with the option --&amp;gt; Remember the value for late use.&lt;/P&gt;&lt;P&gt;  Then when I create a buttom to introduce all the values in the combobox, etc I selected the option --&amp;gt; Record Operations --&amp;gt; Add New Records&lt;/P&gt;&lt;P&gt;   But I don't know what happend that when I press the button, the table don't accept the records and the information it is not recorded into the table.&lt;/P&gt;&lt;P&gt;   Only if I am going to the table and create records, the form will modify the records already created, but the form never create new records.&lt;/P&gt;&lt;P&gt;    Anyone please can help me on that.&lt;/P&gt;&lt;P&gt;    Thank you very much</description><pubDate>Wed, 02 Jun 2010 11:47:28 GMT</pubDate><dc:creator>samuvk</dc:creator></item><item><title>Crystal Report</title><link>http://www.a1vbcode.com/vbforums/Topic29282-4-1.aspx</link><description>dear all,&lt;br&gt; ihave tried this code to open my crystal report, but this code dont work. I use ms Acces with password protected. this is my code I use :&lt;br&gt;With crBayar&lt;br&gt;        .ReportFileName = App.Path &amp; "\Report\BAYAR.rpt"&lt;br&gt;        .Connect = App.Path &amp; "\data\finance.mdb"&lt;br&gt;        .DiscardSavedData = True&lt;br&gt;        .RetrieveDataFiles&lt;br&gt;        .DiscardSavedData = True&lt;br&gt;        .ReplaceSelectionFormula ("{Tb_Bayar.Bayar} &gt;=" &amp; Val(txtTotalFrom) &amp; "  and {Tb_Bayar.Bayar}  &lt;=" &amp; Val(txtTotalto) &amp; "")&lt;br&gt;        .Destination = crptToWindow&lt;br&gt;        .PrintFileType = crptCrystal&lt;br&gt;        .WindowState = crptMaximized&lt;br&gt;        .WindowMaxButton = False&lt;br&gt;        .WindowMinButton = False&lt;br&gt;        .Action = 1&lt;br&gt;End With&lt;br&gt;&lt;br&gt;please help me, asa soon as posible</description><pubDate>Fri, 14 May 2010 03:22:36 GMT</pubDate><dc:creator>zieqco</dc:creator></item><item><title>recognize number plate from video</title><link>http://www.a1vbcode.com/vbforums/Topic29203-4-1.aspx</link><description>I need a little advice on how best to read/recognize a number plate and for a program to recognise the digits of that number plate, which it will then run through a database. I have no problem with capturing an video from a live feed but i then need the program/coding/method how to pull out the number plate on the textbox and at the same time all the details of vehicle will appear on interface of the system in visual basic 6.0. I had used Halcon 7.0 to capturing a video and microsoft access as a database.</description><pubDate>Sun, 25 Apr 2010 04:05:32 GMT</pubDate><dc:creator>ayuz</dc:creator></item><item><title>Database problem in a program I wrote and have used several years</title><link>http://www.a1vbcode.com/vbforums/Topic29158-4-1.aspx</link><description>I wrote a program a few years back and have used it without any problems. The program stores everything entered to a Microsoft Database. &lt;/P&gt;&lt;P&gt;Yesterday when I tried to use the program it would not work and I was refered to a created Log stating "Cannot Load Control DB Grid; License not found. &lt;/P&gt;&lt;P&gt;How do I correct this problem?&lt;/P&gt;&lt;P&gt;Atora</description><pubDate>Tue, 13 Apr 2010 23:18:32 GMT</pubDate><dc:creator>atora</dc:creator></item><item><title>odbc/sql server</title><link>http://www.a1vbcode.com/vbforums/Topic29081-4-1.aspx</link><description>hi&lt;br&gt;what's a ODBC ?&lt;br&gt; it is necessary to install it to do the connection to the database sql server? &lt;br&gt;(I use vb.net as a langage of programmation)</description><pubDate>Mon, 29 Mar 2010 21:09:23 GMT</pubDate><dc:creator>marwa580</dc:creator></item><item><title>Insert Statment Error</title><link>http://www.a1vbcode.com/vbforums/Topic29059-4-1.aspx</link><description>[        &lt;br&gt;Dim con As OleDb.OleDbConnection = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source= C:\Users .... ") 'This here, declares where the database is located&lt;br&gt;&lt;br&gt;        Dim dt As New DataTable()&lt;br&gt;        Dim str As String&lt;br&gt;        Dim com As OleDb.OleDbCommand&lt;br&gt;&lt;br&gt;        Dim user_name As String = txtusername.Text&lt;br&gt;        Dim pass_word As String = txtpassword.Text&lt;br&gt;        'Dim application As String = txtapplication.Text&lt;br&gt;&lt;br&gt;        'try statement&lt;br&gt;        Try&lt;br&gt;            'declaration stage, declare all database components and strings&lt;br&gt;&lt;br&gt;            con.Open()&lt;br&gt;&lt;br&gt;            str = "insert into password(pass,username) values('" &amp; pass_word &amp; "','" &amp; user_name &amp; "')"&lt;br&gt;&lt;br&gt;            lblInfo.Text = "saved"&lt;br&gt;&lt;br&gt;            com = New Data.OleDb.OleDbCommand(str, con)&lt;br&gt;            'execute the query&lt;br&gt;            com.ExecuteNonQuery()&lt;br&gt;            'close the connection&lt;br&gt;            con.Close()&lt;br&gt;&lt;br&gt;            'if there is an error during the process ...&lt;br&gt;        Catch ex As Exception&lt;br&gt;            'warn the user that username is already taken&lt;br&gt;            lblInfo.Text = "Username already exits. Please Try Another Username."&lt;br&gt;&lt;br&gt;        End Try&lt;br&gt;    End Sub&lt;br&gt;/]&lt;br&gt;&lt;br&gt;&lt;br&gt;hi all, above is my code which is giving me some problems. actually im trying to insert into a MS ACCESS database, but for some reason im getting an error; Syntax error in INSERT INTO statement.&lt;br&gt;&lt;br&gt;the thing is, when i paste the SQL statement into an SQL query it executes without any problems.&lt;br&gt;&lt;br&gt;any help please?&lt;br&gt;&lt;br&gt;please note im a bigginer &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;thanks&lt;br&gt;mark</description><pubDate>Fri, 26 Mar 2010 04:45:56 GMT</pubDate><dc:creator>zulli-mlt</dc:creator></item><item><title>SAVING AND RETRIEVING IMAGES INTO ACCESS USING VB6</title><link>http://www.a1vbcode.com/vbforums/Topic28933-4-1.aspx</link><description>HELP GUYS. I JUST WANT TO KNOW HOW TO SAVE IMAGES INTO ACCESS USING VB6. I'M 3RD YEAR COLLEGE NOW. AND WERE WORKING NOW WITH DSS.. THANK YOU. AND GODBLESS...</description><pubDate>Sat, 27 Feb 2010 00:14:21 GMT</pubDate><dc:creator>jessiekidfernando</dc:creator></item><item><title>Lan base system</title><link>http://www.a1vbcode.com/vbforums/Topic28903-4-1.aspx</link><description>i just want to ask if how to create lan based &lt;/P&gt;&lt;P&gt;system with mysql database and vb 6???&lt;/P&gt;&lt;P&gt;thanks..</description><pubDate>Wed, 17 Feb 2010 00:17:46 GMT</pubDate><dc:creator>belat</dc:creator></item><item><title>how to create digital signature in forms</title><link>http://www.a1vbcode.com/vbforums/Topic28896-4-1.aspx</link><description>hey...i just want to ask  if&lt;/P&gt;&lt;P&gt;how to create digital signatures for form in&lt;/P&gt;&lt;P&gt;visual basic....&lt;/P&gt;&lt;P&gt;thanks</description><pubDate>Tue, 16 Feb 2010 07:57:22 GMT</pubDate><dc:creator>belat</dc:creator></item><item><title>Database back up and restore</title><link>http://www.a1vbcode.com/vbforums/Topic28886-4-1.aspx</link><description>good day! i just want to ask &lt;/P&gt;&lt;P&gt;if how to back up and restore mysql database using visual basic 6&lt;/P&gt;&lt;P&gt;thanks..</description><pubDate>Mon, 15 Feb 2010 00:22:28 GMT</pubDate><dc:creator>belat</dc:creator></item></channel></rss>
