2,634 Topics

Member Avatar for
Member Avatar for Shaggy19

I am currently having a few issues saving new information to a dataset. I could update the set, but on exiting and reopening the data all updates were gone. I found a few tips online but now get error messages when running the update command. Any help would be greatly …

Member Avatar for Shaggy19
0
100
Member Avatar for qiera

i am new with vb and this is my code that i work with.. there are errors in my code to view data from ms access into data grid.. can anyone help me to solve this problem? thanks... Imports System.Data.OleDb Public Class frmView Inherits System.Windows.Forms.Form Dim DB As OleDb.OleDbConnection Dim …

0
33
Member Avatar for OldManStarting

Hi; I have a question regarding my curent use of datasets and classes. I currently have a class with public properties of connectionstring sqlcommand Im setting the 2 properties from my main form and then calling a public sub within the class, this sub reads the connectionstring, connects to my …

0
66
Member Avatar for dragonheart

HI, in my project, i have a table 'Orders' with orders submitted, where some have already completed and others are pending,,, The status of the order is denoted by a status ('completed' / 'pending') My problem is this,, I need to display the orders separately in two different sections in …

Member Avatar for ﻼim
0
84
Member Avatar for ukfreak

Hi, I need a very urgent help. My requirements is, I need to display my data in a datagriedview on monthly basis only. I have done the retrieving of the data from sql server to the datagriedview. But how do i show it only on monthly basis? Regards, Malini Imports …

0
61
Member Avatar for OldManStarting

Having found the following post on datareaders [URL="http://www.daniweb.com/forums/thread278415.html"]Topic Posted On DaniWeb[/URL] i have managed to successfully create a datareader in a class that updates a listbox on the calling form with entries retrieved from a SQL server database. I was wondering if it is possible to achieve the same thing …

Member Avatar for OldManStarting
0
163
Member Avatar for revolution3396

I need a vb code as below This is my login page [ATTACH]16718[/ATTACH] This is my login page code Private Sub StudentLoginButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles StudentLoginButton.Click Dim connection As New OleDbConnection("Provider = Microsoft.ACE.OLEDB.12.0;Data Source = ../Data/Student.accdb;") Dim command As New OleDbCommand("SELECT * FROM Student WHERE …

Member Avatar for Animal Mother
0
158
Member Avatar for ehrendreich

I am rather new to vb and could use some help. I am using the latest version of vb and am working with a database to add some records. Simply, I would like to have a form that adds a new record into the tblContact table then enter a few …

0
68
Member Avatar for AngelicOne

My form1 has datagridview, that is populated by a dataset. I want to pass the selected value of the datagridview to my other form which is form2. How could I do this?

Member Avatar for SHatcher
0
1K
Member Avatar for kckrns

Hello all, I am currently working on a project that requires an update within an Access Database. There are photo folders, and the user defines the path name via a dialog box. That path name is stored to a string value, and through OleDBReader, the actual name of the photo …

Member Avatar for Niranjan003
0
109
Member Avatar for nfrmn

Hi all, I'm developing a graphing application that plots several lines from a protein sequencer that outputs its values in .csv format. I've read the csv into a DataGridView just fine, which is laid out like this: Cycle | A1 | A2 | A3 (all the way up to A12, …

0
142
Member Avatar for chuck577

Hello all, I have an xml file with the information below: [CODE] <?xml version="1.0" encoding="utf-8" ?> <ServerNames> <Name>dfwnbonner1</Name> </ServerNames> [/CODE] I am trying to get the Name of a server into a listview. This works fine with the above xml but as soon as I add another server name in …

Member Avatar for chuck577
0
217
Member Avatar for h612

Hello, i've a server and client code in which the error i'm getting is: on deserialization- but when i checked the byte[] length after serialization that i send they are 1550, and then over the tcpclient when i received the byte[] it was 1448 in length... any help or suggestion …

Member Avatar for h_Nick1981
0
473
Member Avatar for zulhimi89

ello, just wanna ask if u all familiar on how to make a code using VB. Act I already call my database from access to appear on web based app, but to make it COLOUR on a specific box can not be done. Before this, I tried to make it …

0
49
Member Avatar for maephisto

Hi all! I have the following situation - three tables in the db : - um_users (id, name) - um_roles (id, description) - um_user_roles (user_id, role_id) I load into a data set two datatables : the "users" one, and another one build on the other two, like this : [code=c#] …

0
18
Member Avatar for Naveed_786

Hi guys, I am using this code to update a record after searching but it gives me error here is my code please please help [CODE] Dim con As New SqlClient.SqlConnection Dim strCon As String = "Data Source=ITS;Initial Catalog=Payment;Integrated Security=True" Dim strCommand As String = "SELECT * FROM CustomerInformation WHERE …

Member Avatar for pabloh007
0
137
Member Avatar for zerey02

.Hello guys! I would like to ask for some help regarding one of my class projects. Here i have two classes named AddBook.cs and the other is ListCommand.cs, what i want to do is to transfer certain codes from AddBook to ListCommand so that whenever i want to use the …

Member Avatar for Geekitygeek
0
97
Member Avatar for subhankar02dey

I want to populate a drop down list fetching data from database along with a "select" listitem at the top of the srop down list. I am using dropdownlistname.items.add("select","0") and dropdownlistname.items.insert("select","0") and then i am fetching data from database in a dataset and then binding the data into the drop …

Member Avatar for Freon22
0
166
Member Avatar for cgcgames

I am Working on Conecting to a database in windos forms C++. I use MVC++. here is a link to my DB file so people can see what i have tried to do in the DB. [URL="http://www.mediafire.com/?yfr52oqcknakk9g"]http://www.mediafire.com/?yfr52oqcknakk9g[/URL] you need access to see this. i have finaly figured out how to …

Member Avatar for cgcgames
0
201
Member Avatar for kplcjl

I don’t have a problem, but sometimes I just love the way this system works. I got the message {"Cannot convert object of type 'System.Int64' to object of type 'System.Data.SqlTypes.SqlInt32'."} {System.Data.DataException} This was the command System.Data.DataRow dr_Test0 = this.XML_DataSet.Tables[0].NewRow(); I also love how they obfuscate code. Finding the designer code: …

Member Avatar for Momerath
0
141
Member Avatar for cgcgames

Hello Everyone I have been looking on the net and I found a few things but I am a bit think :P. I need more of a walkthrough kind of things. I am currently making a programe for a game and I need to access a database that has information. …

0
84
Member Avatar for Andy_Parr

Hi, I have a database linked to my VB.NET project using the data source wizard. I've created a log in form using a table in access that has the details required to log in. The code is: [CODE]Imports System.Data Public Class Form1 Dim conn As OleDb.OleDbConnection Dim strSQL As String …

Member Avatar for NoOneSpecial
0
458
Member Avatar for datapham

Hi everyone , i try to validate a [string ID] when user input it in a textBox(C#)for searching datarows in database , but it does not send a message "False Input" if i input a wrong string ID which is different from database . protected void button_search(object sender, EventArgs e) …

0
81
Member Avatar for magsaleh

Dear all, I have something very weird, never experienced it before with c# express edition - i have a piece of selection query that selects all the records within a specific month. - this query works very fine in msaccess, but doesnt work in the run time in c#. so …

Member Avatar for Venjense
0
162
Member Avatar for Ubarti

.NET4.0 / VS 2010 The treeView never populates past Jobs. I have a SQL table with the following: Node NodeName ParentNode 0 Jobs 0 1 Child1 0 2 Child2 1 3 Child3 1 4 Child4 3 5 Child5 4 6 Child6 4 private void FillTree() { con = new System.Data.SqlClient.SqlConnection(); …

0
68
Member Avatar for mimi8469

The software developed should extract the details of an audio CD ( like album name, artist, genre, year released) and then transfer them to a database. I am using an access database. so far i hv been able to get the attributes except the year. Also how do I prevent …

0
48
Member Avatar for Phil2:3

Hi all, Have been working with datagridviews with datasets, bindingsources, comboboxes, etc. I was having a problem that prompted me to ask a question. First, the problem that I was having. I created a datagridview that was bound to a dataset and then added code that created columns and some …

Member Avatar for Phil2:3
0
73
Member Avatar for kurtzky

Hi all. This is the scenario that i have right now. i have a stored procedure created in MS SQL 2000 and is linked to my C# program. The stored procedure contains four select statements (which means it will return 4 tables). In my program, I have four datagrids and …

Member Avatar for kurtzky
0
176
Member Avatar for SethR

Someone please help me before I smash my computer. Every time I try to update a database using my data adapters update method I get the following error.....[B]Object variable or With block variable not set.[/B] I can't for the life of me figure out why this is happening. Here's the …

Member Avatar for reenez
0
442
Member Avatar for Prashant387

Hello sir, I have add one listbox in my code. i'm assigning data to the list box at runtime from DataSet. The Value member of the ListBox is EmployeeID and Display member of the ListBox is EmployeeName. [B][U]User Can Select Multiple EmployeeNames at Run time [/U][/B]. Now I want to …

Member Avatar for Geekitygeek
0
143
Member Avatar for barrievans

This is my first attempt at a report in VB.net As a simple start I have form1 with a button to call the report I defined the Dataset for the report using a stored procedure with no parameters although idealy the next stage would be a parameter in the stored …

Member Avatar for barrievans
0
78
Member Avatar for johny1980

hello i have project for billing and codeing. i work in team, when i start create database i totally forget about naming convention and i choose my name. now i need to change that database name according to my team member's database name. should i able to change my database …

0
42
Member Avatar for G_Waddell

Hi all, I'm writing an application that imports and tidy up address data into a cleaned, deduped excel workbook ordered in rows with each column as an address field. One of the issues I've ran into is that we sometimes get a workbook where the multiple address fields are held …

Member Avatar for Baldur Levesque
0
255
Member Avatar for shane711

Dear all, let me explain how my datagrid work. The datagrid have 10 columns and 21 rows. The datagrid value will be updated every 5 minutes. Actually what I want is to compare the value before 10minutes with the current value which show in the datagrid. The value that I …

Member Avatar for Geekitygeek
0
194
Member Avatar for manavsm

hey can u help me out with the below problem The problem i that when i click on country i should be able to select the corresponding states...i have done this in asp.net and it works fine but here when i try to select the country here nothing happens and …

Member Avatar for Geekitygeek
0
91
Member Avatar for lm111

Hello, I'm trying to create an app where the user can search the database using different controls. For example let's say the user can search by date (calendar control), country (DropDownList), states (DropDownList) and cities (DropDownList). So far I have the DropDown controls working. The user selects whatever they want …

Member Avatar for rohand
0
103
Member Avatar for lisles

im trying to open a document...but every time i get a dialoge box asking if i want to pen,save or cancel.i just want to open the document.can someone tell me wot im doing wrong?here's my code [code] if (objView.extension == ".pdf" || objView.extension == ".xls" || objView.extension == ".xlsx" || …

Member Avatar for rohand
0
90
Member Avatar for snairsumith

using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; using System.Data.SqlClient; public partial class userreg : System.Web.UI.Page { SqlConnection con; protected void Page_Load(object sender, EventArgs e) { } protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { …

Member Avatar for rohand
0
108
Member Avatar for NH1

Im having a little bit of trouble with an update statement. if any one could take a look at it and help me with what im doing wrong that would be great. [code=c] private void button6_Click(object sender, EventArgs e) // Button6 is OK { ///////If Null///// if ((textBox1.Text.Length == 0) …

Member Avatar for Geekitygeek
0
107
Member Avatar for lisles

im trying to open a document...but every time i get a dialoge box asking if i want to pen,save or cancel.i just want to open the document.can someone tell me wot im doing wrong?here's my code [code] if (objView.extension == ".pdf" || objView.extension == ".xls" || objView.extension == ".xlsx" || …

Member Avatar for Ketsuekiame
0
115
Member Avatar for vbhelp

Hello everyone, I am a beginner to VB .Net. I am making a project to create an OleDb connection using Visual Studio 2008. I did the same thing in VB .Net but unable to do the same in Visual Studio 2008. Can any one help me with the step by …

0
57
Member Avatar for Don_leon

How can I connect to a SQL server(not SQL Compact Edition)Database from my Smart device. I am a bit stuck on this because the connection string does not seem to work it gives me a (Null reference error) I checked the SQLcommand text and that was working properly as well …

Member Avatar for Don_leon
0
218
Member Avatar for sidmendiratta

Hello All, I am trying to add data from a dataset to an access table(.mdb). I am getting this error when I try to insert the values in the table. This is the code [code]DataSet ds = new DataSet(); Console.Write("The NAME IS: " + FileName.Text.ToString()); ds.ReadXml("C:\\Dallas_Test\\Offense_7_1_2010\\" + FileName.Text.ToString()); ADOX.Catalog cat …

Member Avatar for nick.crane
0
136
Member Avatar for Indianblues

Hi I am very new to C#. Below is the program which i am trying. { string connstring = "Data Source = .\\SQLEXPRESS;Initial Catalog = SAMP; Integrated Security = True"; SqlConnection conn = new SqlConnection(connstring); SqlCommand comm = new SqlCommand(); comm.Connection = conn; SqlDataAdapter myadapter = new SqlDataAdapter(comm); DataSet myset …

Member Avatar for adchopra
0
89
Member Avatar for PEFCa

I am learning VB and am working on a tutorial on databases. The recordset is a disconnected set. I am getting a concurrency exception. I might have 3 records. I delete all 3. Then I add a record, it adds it. Then I attempt to delete it and it fails. …

Member Avatar for deathrock
0
102
Member Avatar for pakunoda

I have a datagridview generated by a dataset. I'm new to windows form, how to do this?

0
56
Member Avatar for MARKAND911

How to update database table using commandbuilder without having Primary Key. We Tried this Attempt; [CODE]obj.con = obj.Class_DBConnection(); OracleCommand cmd = new OracleCommand(); string fromsrvno = "000000067334"; string tosrvno = "000000067350"; qryStr = "select distinct * from test_m_srvdetail where SDBM_SERVICE_NO between'" + fromsrvno + "' and '" + tosrvno + …

0
80
Member Avatar for ranu jain

[COLOR="Green"]handles clouse require a withevent variable defined in containing type or one of its base type[/COLOR] [U]i got this error in the following code[/U] Imports System.Data Imports System.Data.SqlClient Imports System.Text Partial Class _Default Inherits System.Web.UI.Page Protected Sub submit2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles submit2.Click Dim i As …

0
62
Member Avatar for shanboy

Hi guys i'm using ASP.net ans SQL server 2005 with stored procedure to do simple search from a table in database.Plz help me out The error i get Function or procedure expects @searchKey which was not supplied. protected void btnSearch_Click(object sender, EventArgs e) { string constring = ConfigurationManager.AppSettings.Get("con").ToString(); SqlConnection conn …

Member Avatar for shanboy
0
218
Member Avatar for krisfr

I just downloaded and installed C sharp for 2010 The connection to the database via the DataAdapter and then to the DataSet does not work. I am trying to tie the db to the textboxs on the form and then navigate the db with buttons like next prev etc. [CODE] …

Member Avatar for tanor
0
157

The End.