Groups | Blog | Home


Archived Months
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007


all groups > vb.net data > june 2004

Many to many relationship in VB.Net
Posted by Jason James at 6/30/2004 8:47:29 AM
Hi All, I have a many-to-many relationship between two tables using a third table as a joining table. I have a single dataset with all three tables loaded and the correct relationships added to the dataset. If I set the datasource of a datagrid to one of the outer tables then I can navigat...more >>

Queries on tables from different data sources
Posted by John at 6/28/2004 11:26:27 PM
Hi I need to perform two queries in sequence on two identical access tables. The source table is coming from a dataset returned by a web method and the destination table is from a local access table. The queries are; UPDATE [destTbl] INNER JOIN srcTbl ON [destTbl].entry_id = srcTbl.entry_id ...more >>

combo box population via datasource problem
Posted by Don Booth at 6/27/2004 9:34:06 PM
Hello, I have a datasource set up from an ODBC source (Access database). When I populated the properties of the combobox with the appropriate datasource and the display member is also populated with the proper field, I run the program. All I get is an empty combo box. I know the data sou...more >>

updating recordes in Db 2
Posted by ranip at 6/26/2004 7:14:23 PM
one more thing i want to display the updated MSG in the bottom bar how do i do so ? ...more >>

updateing records in Db
Posted by ranip at 6/26/2004 7:09:10 PM
I've created my first application - a form that writes info to a DB. I created the OleDbAdapter1 and OleDbConnection1 and DsImporter1 and they are all fine. i added the folowing code to my form : OleDbDataAdapter1.update(DsImporter1) MessageBox.Show("Database updated!") The Issue is the in...more >>

newbe question
Posted by ranip at 6/26/2004 2:26:52 PM
Hi all i have a simple question: 1. how do i bound a listbox to a table in the DB? 2. I want to check against the information stored in the DB if a value is already stored. (using TextBox) if the value is stored i want to display a msg. ...more >>

Updating one table from another
Posted by John at 6/26/2004 11:25:55 AM
Hi I need to update one access table from another in a way that all new records are inserted and all existing records are updated. Is there an example of this that I can follow? Thanks Regards ...more >>

Creating table from dataset
Posted by John at 6/25/2004 11:59:48 PM
Hi I have a dataset which has received its data from a remote web service. How can I now save the dataset into a local access table? Thanks Regards ...more >>



ADODB not shown in .Net tab add reference dialog
Posted by Scott Lemen at 6/25/2004 9:11:43 PM
Hi, I'm running Visual Studio 2003 Enterprise. The ADODB component is not listed in the .Net tab of the Add Reference dialog though there are several ADO versions, 2.0 through 2.7, on the COM tab. I'm trying to learn ADO .Net from VB .Net and Francesco Balena's Visual Basic .Net book...more >>

Question on binary serialization of datasets
Posted by Wild Wind at 6/25/2004 5:06:34 PM
Hello, I have an object which has various properties, including one which is of type DataSet. I need to serialize this object in binary format, but I've discovered that the BinaryFormatter will only format datasets in XML format. I've read various articles on how to address the problem, i...more >>

Newbie code example question
Posted by John at 6/25/2004 4:34:47 PM
Hi I need to copy records from table A to a new table B (overwrite if exists) based on a flag field not set in table A. I then need to set flag for all records in table A that are also in table B. How can I do this in ado.net using vb.net? Thanks Regards ...more >>

Help with parent/child relationship and identity columns
Posted by Dave Taylor at 6/25/2004 3:41:04 PM
I have a table colSimulations which has an indentity column, id. According to stuff I've read so far, in the DataSet, I've set the AutoIncrementSeed and Step to -1 to create my "placeholder" values. I have another table called colPatches as a child of colSimulations, it has an id field (not au...more >>

Dataset question
Posted by Adriano at 6/25/2004 8:19:53 AM
hello, i used temp dataset (TempDataset1) to load data from datasource and then merged it to working dataset (Dataset1), is it possible to load data from TempDataset1 into Dataset1 selectively, i mean by using queries??? tnx in advance, Adriano ...more >>

Updating DB
Posted by ranip at 6/24/2004 9:18:43 PM
Ok guys iv'e created my first form. the form has 4 TxtBoxes In it and i want to create a button that will do 2 things : 1. Close the form - Simple me.close 2. update a specific table in a database with TxtBox1 TxtBox2 etc. is there any code sample for that ? never done it in my life ...more >>

NULL Value in Select-Statement
Posted by Claudius Schmid at 6/24/2004 7:16:31 AM
Hi! I'm using the following Code to get rows from my Database. In each row either Nr is filled an Nr2 is NULL or vice versa. Now the user can enter in two text boxes the number to select. i want to pass this to a parametrized dataadapter, but i always get errors or no result rows at all. i...more >>

getting DB errors
Posted by Bob at 6/21/2004 4:11:41 PM
When a query fails using DB.OpenRecordset, I want to be able to get the actual error message returned from SQL Server, not just simply 'ODBC call failed'. Is that possible? In addition, when I use DB.Execute, in some cases I don't get any error at all, though executing the sql in Query Analy...more >>

getting selected row from a datagrid?
Posted by starbuck at 6/18/2004 5:03:35 PM
Hi I have a datagrid in my vb6.net project. The grid is populated fine and the first column of each row is hidden to the use (width = 0) and holds a unique id for the selected record. My question is when a row is selected an the user presses the EDIT button how do I read the value of column...more >>

Why Does My Row Disappear from Datagrid --- RowDeleted Handle
Posted by sajid_yusuf NO[at]SPAM yahoo.com at 6/18/2004 4:42:35 AM
Hi! All, I have a datagrid which is bound to a datatable. What I want to do that if anyone deletes a row then he would get a message that you cannot delete the row and then it would still display the row that was deleted. But now the problem is that the message appears but the row disppears. ...more >>

XML vs. Access for data storage?
Posted by Steve at 6/17/2004 8:52:52 PM
Hello: Our small software shop is developing a small VB.NET Shipping Order application for our internal use. Our goal is to develop a useful application while learning the .NET framework at the same time. We're having a problem figuring out the best way to store each Shipping Order obje...more >>

Access Tables
Posted by Stephen at 6/17/2004 2:51:45 PM
Greeting .... I have a small app in vb.net that allows the user to seleect from a series of access mdb files. I would also like to be able to select from the tables within the mdb file......any idea's thank you steve ...more >>

error: too few parameters -- WHY?
Posted by Ronald Snelgrove at 6/16/2004 7:36:28 PM
To All: I am fairly new to both VB.net and Access and have a question regarding the combination of these via ODBC. The code in question is at the end of the message. I have a procedure with which I am connecting to an Access2000 database and counting the number of records in table 'mc' tha...more >>

Newbie Query Question
Posted by Aaron Bellante at 6/15/2004 9:04:03 AM
I have just started teaching myself VB.NET and SQL. I just need a little help in the syntax. I am at a loss on how to do this: I have a dropdown list that needs to show a "FirstName, LastName" from a table. Here is what I have so far: Private Sub SalesmanLoad() Dim ds As Da...more >>

Help on SQLCE
Posted by Enver A at 6/14/2004 4:46:01 PM
Hey ppl, I am having trouble in building a smart device application. I cant create a table on SQLCE server using this line. Anyone can tell me what the problem is? I am able to create another 3 Tables same way but this SQL line is always gives me problems. command4.CommandText = "CREATE T...more >>

In which format Date as saved in MSDE?
Posted by Mat at 6/14/2004 8:17:28 AM
-English format? -Regional setting depending format? Do i have to use always english format to query by date (MM/DD/YYYY)? Thanks you ...more >>

database names.. urgent :)
Posted by Jason Rey via .NET 247 at 6/13/2004 11:16:27 PM
how to retrieve database names from an sql server? and how do i connect to the server? im using a vb.net application. basically, i want to fill my combo box with all the available database in the server. any ideas? thanks for the help guys.. -------------------------------- From: Jason Rey ----...more >>

Atomate MSAccess 2003
Posted by Barry G. Sumpter at 6/12/2004 6:24:23 PM
This is the article I've based a report viewer on: http://support.microsoft.com/?id=210132 I've been able to execute 2003 reports but can't seem to figure an appropriate way to show the reports selection criteria from either the filter or where clause. Does anyone know how to execute a re...more >>

How to send multi dimension array data to UART com port?
Posted by hauyuanwen1980 NO[at]SPAM yahoo.com at 6/12/2004 12:50:34 AM
Hi, can anybody give me idea to solve my data transmission problem? Previously, i declare a single dimension array and then send to UART com port as follow: dim ByteArray(64) as Byte ... MsComm1.Output = ByteArray However, after i modify my program and change the...more >>

Displaying an Image from an OLE field in an Access Database
Posted by Jonathan Burris at 6/10/2004 11:54:39 AM
I have an OLE column in an Access database. The column name is "PHOTO". I have JPEG files stored in that field. For the life of me, I cannot get this data to show in a PictureBox. I have learned that the OLE data type in Access handles data differently than just storing a blob of data conta...more >>

Currency Manager.Position won't go to last row...
Posted by Jim Spaloss via .NET 247 at 6/8/2004 10:01:30 PM
Hello, I Have a VB=2ENet Winforms application using data binding=2E The= model I used is based on an example from a book=2E The problem= that I am having happens when I try to add a new row to the= datatable=2E I am able to add the row via= datatable=2Erows=2Eadd(datatable=2Enewrow()) and...more >>

JoinView DataGrid Event Problem
Posted by zohar NO[at]SPAM tradertools.com at 6/8/2004 2:16:40 AM
I am having an issue with the VB.NET JoinView (http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q325682) I added event handlers for the various changing events (see code below) but the problem is that I receive numerous OnChanging/OnChanged events just by clicking rows in the binded Dat...more >>

Find a String in VB.NET
Posted by Federico G. Babelis at 6/7/2004 9:40:06 PM
Hi, I need to extract a string from another string separated by "," like a .csv file. for example I have this string: String1 = 000,federico,00,439827HGH,1233,FGB,0000,00,000 and from that string i need to extract string "federico" and string "FGB" and separate then into another 2 string...more >>

Dataview, DataviewManager problems
Posted by Jared at 6/7/2004 1:01:51 PM
All, I am having a problem gathering related data from two tables in a dataset. I create the dataset from an xml file with the structure below. The Table structure is below that. What I want to know is how do I Select * from Resource (Where Keyword_Text LIKE 'searchstring%') The resul...more >>

How to create a connection to db with code only ?
Posted by Artur Schwartz at 6/6/2004 6:40:07 PM
Hi ! My problem is to create function returning, for example country name, from entered country_code. There is an access table (Country) with two columns (CountryCode and CountryName). In VB6 functions like this, were working preaty good, but in vb.net I can only build Connections, DataAdapt...more >>

Find if value exists in a column in a DataTable.DataColumn
Posted by samkuehn NO[at]SPAM hotmail.com at 6/4/2004 7:35:42 AM
How do you check to see if a value is in a column of a table in a dataset. I want to flag items in column one dataset that already exist in another column of a different dataset. If DataSet1.DataTable1.Column1.AllValues exists in DataSet2.DataTable2.Column2.AllValues Return True. I am stu...more >>

How do I add a column of buttons to a bound DataGrid control?
Posted by acool at 6/2/2004 3:20:18 PM
I have been trying to do this for hours with only limited success. I have no idea why MS makes something that should be so straight forward a real pain. Can anyone point me in the right direction? ...more >>


DevelopmentNow Blog