2,634 Topics

Member Avatar for
Member Avatar for speedy gonzalos

I am trying to create an Inventory/Stock Control system as a windows application using vb.net with an Access database. This is my first time trying to use vb.net and im having difficulty making the application interactive. I am unable to update records to the database from the front end. I …

Member Avatar for tariq182
0
186
Member Avatar for pinkiguana

I have a list of questions, each has its own category. I want to be able to select 5 random questions from each category and then display them ordered by category in something like a nested repeat region. I have the sql for obtaining the random 5 for each category …

0
45
Member Avatar for moshe12007

i dont know how to read from database SQL. i try this : [CODE] string sql = "Select * from Table1 "; DataSet ds = new DataSet(); string connStr = @"Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database.mdf;Integrated Security=True;User Instance=True"; SqlConnection conn = new SqlConnection(connStr); SqlCommand cmd = new SqlCommand(sql, conn); conn.Open(); SqlDataAdapter adapter = new …

Member Avatar for nick.crane
0
99
Member Avatar for Uzumaki52

Hi, I have table in Database and i need to get the get the values of column and check for the values. If the value in row of that column is null...the imagebutton in grid view should be disabled. I am unable to get the rows values. Can anyone help?? …

Member Avatar for prashantchalise
0
73
Member Avatar for renzo821

I've been wanted to get this calendar to show data from a HTML dataset just like on this example.. [URL="http://tv.adobe.com/watch/inside-the-dreamlabs/dreamweaver-cs4-javascript/"]http://tv.adobe.com/watch/inside-the-dreamlabs/dreamweaver-cs4-javascript/[/URL] but i havent been succesfull. Does anybody know what can i do? I think my major problem is when im trying to declare the variables on the event handler. I …

0
48
Member Avatar for BalagurunathanS

Hi all... Someone give me the difference between typed dataset and untyped dataset.. Regards, Balagurunathan S

Member Avatar for vinod991
0
169
Member Avatar for pupilstuff

using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Data.SqlClient; public partial class exam : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } public void function() { my e = new my(); SqlConnection sqlcon = new …

Member Avatar for nick.crane
0
157
Member Avatar for az7_neli

Hi, everyone! I have a new problem with my graduation work. :( My application must open database at runtime and modify data in this database. The database is random. For that reason I have no idea in which table will be inserted data or update or delete. The problem is …

Member Avatar for az7_neli
0
955
Member Avatar for sackymatt

Hi all, I have a small problem that i cant figure out. i have a program that i want when a user select a date from a datetimepicker, it filters evrything from the datagridview that are for that date.. Hare is the code i have Private Sub Button1_Click_1(ByVal sender As …

Member Avatar for sweber25
0
147
Member Avatar for like_bilal02

Dear freinds i want to get specific data in gridview specifc cell with the help of sql query from sql table i put the following query but it doesn't work [code] Sql = "select e.item_no from nitmtbl e,purchaseitem g where e.item_name=g.item_name and g.item_name='grovita sp'" Da = New SqlDataAdapter(Sql, Class1.Connection) Da.SelectCommand.ExecuteNonQuery() …

Member Avatar for like_bilal02
0
103
Member Avatar for perryg30313

Hello Forum, I am having trouble retrieving data from a stored procedure that I have set up as a Data Adapter using VB.NET 2005. The Database is SQL Server 2000, and what I am trying to access is a simple Stored Procedure that will validate a users login access. Details: …

Member Avatar for kvprajapati
0
90
Member Avatar for ahkaushi

I need to know how to show my search item in a data grid? There is error in grid display part. Can you help me to solve it? Imports System.Data.OleDb Imports System.Text Public Class mainpage Inherits System.Windows.Forms.Form Dim cn As OleDbConnection Dim cmd As OleDbCommand Dim cn4 As OleDbConnection Dim …

Member Avatar for Oxiegen
0
86
Member Avatar for ar31an

i am using database with table RESUME and column PageIndex in it which type is number in database but when i want to store this PageIndex value to an integer i get exception error **Specified cast is not valid.** here is the code [CODE] string sql; string conString = "Provider=Microsoft.ACE.OLEDB.12.0; …

Member Avatar for finito
0
89
Member Avatar for ar31an

hello mates, i am working on a project of online resume management system and i am encountering an exception while creating resume. [b] Exception: Data type mismatch in criteria expression. [/b] i have attached the database tables list, here is my code for Create Resume-1.aspx.cs [code] using System; using System.Data; …

Member Avatar for finito
0
139
Member Avatar for MrBlack

this is my simple application , i try to updata ,but it is not working, in this example it shows only first reocrd and, try to update first record(i want to know the method of updating, so i can updates other records too) data base has only two fields id,name …

Member Avatar for MrBlack
0
111
Member Avatar for wolfje

Hi I'm trying to load a treeview from 4 tables in the database, i'm using the code attached. The problem is that only 2 of the nodes show up, as soon as I get down product level, the node will not show up. Can anyone see where I went wrong?[code]private …

Member Avatar for kvprajapati
0
102
Member Avatar for MrBlack

Can any body explain me[B] Adding parameters to AddParams method [/B] I cant understand the code in this code it try to delete a row from article table, for that i use SqlDataAdapter,DataSet and DataTable , //Preparing Delete Sql Command [CODE] dataAdapter.DeleteCommand=conn.CreateCommand(); dataAdapter.DeleteCommand.CommandText="DELETE FROM article WHERE artId=@artId"; AddParams(dataAdapter.DeleteCommand,"artId"); [/CODE] This …

Member Avatar for MrBlack
0
559
Member Avatar for AngieK

I'm trying to import all data from an Access DB using Visual Basic 2005. I'm new to Access and so far I can only import one record at a time. Any help would be appreciated!! Here is the code I have so far (obviously to bring one record at a …

Member Avatar for G_Waddell
0
107
Member Avatar for digitalsindhx

I Want To Search Date From .mdb Database file, Table Name is Purchase, and The Field is Purchase Date, its Type is DateTime and Formate is ShortDate in MS Access Database File, I Conceted it to Vb.net Form, and Tryed to Search Date, but it Returns Error. the Code to …

Member Avatar for Netcode
0
279
Member Avatar for perryg30313

Hello Forum, I am new to SQL Server and have inherited a database from another developer. I have a Stored Procedure that I'm trying to use in my vb.net program to fill a form with multiple datagrids. The Stored Proc looks like this: set ANSI_NULLS ON set QUOTED_IDENTIFIER ON go …

Member Avatar for perryg30313
0
120
Member Avatar for sdhawan

hi guys i need help with date time picker.What i am trying to do is to select data from table according to teh date selected by the user .My code looks like this but it doesnt work, it doesnt pull anything, can anyone help me with where am i going …

Member Avatar for nick.crane
0
127
Member Avatar for ajwei810192

Hi, I have the code here as in the following: [CODE] <%@ Import Namespace="System.Data" %> <%@ Page Language="C#" Debug="true" %> <script runat="server"> sub Page_Load if Not Page.IsPostBack then dim mycdcatalog=New DataSet mycdcatalog.ReadXml(MapPath("alice_music_list.xml")) cdcatalog.DataSource= mycdcatalog cdcatalog.DataBind() end if end sub </script> <html> <body> <form runat="server"> <asp:Repeater id="cdcatalog" runat="server"> <HeaderTemplate> <table style=";font-family:Arial;width:56%;margin:1em …

Member Avatar for ajwei810192
0
547
Member Avatar for bghodsi

Hi Folks: The following is the complete coding for an application which I wrote to move data from sql 2000 to MS Access 2003. The coding looks fine to me but I am still getting an error. Could someone tell me what I am doing wrong. Thanks in advance Bob …

Member Avatar for finito
0
110
Member Avatar for Loony064

Hey All! I'm working on a project where there is a lot of data input from the user. There are numerous combo boxes to help minimise user input and prevent input errors. One of the combo boxes (ComboType) needs to be populated with all the records from the relevant database …

Member Avatar for finito
0
200
Member Avatar for sdhawan

Hi Guys, I am getting index out of range error.My code looks like this [code] private void submit_Click(object sender, EventArgs e) { if (form.dataGridView2.SelectedRows.Count == -1) return; // column header clicked - do nothing // get the row just clicked DataRowView drv = form.dataGridView2.SelectedRows[0].DataBoundItem as DataRowView; if (drv != null) …

Member Avatar for sdhawan
0
158
Member Avatar for khaled_jawaher

hi there, i am still facing the same problem with runtime error object canºt be found when trying to access ms access database remotely.i made the database in the wwwroot folder and give authority read write ,....the code is in the client side i am accessing a server that has …

Member Avatar for khaled_jawaher
0
170
Member Avatar for Edvin76

The Xml: Micfosoft(TM)'s modified Books.xml: The price attribute of the last book item was modified by me, now it appears two times, once as attribute of book and second time as a separate item inside the book item. [code=xml]<?xml version='1.0'?> <!-- This file represents a fragment of a book store …

Member Avatar for Edvin76
0
169
Member Avatar for sdhawan

Hi , I need help with select staement.I am trying to to look for a word in column word .If i find that word then then show a message box that this word exist in databse.Can anyone help me with this.my code is something like this [code]private void dataGridView2_CellContentClick(object sender, …

Member Avatar for nick.crane
0
138
Member Avatar for sandeepani

hi. I am working on a project which keeps its data access, business logic and UI in separate projects of a solution. Is there a way to access a strongly typed dataset in one project of a solution from another project of the same solution? I need these to fill …

Member Avatar for nick.crane
0
93
Member Avatar for itmasterw

Hi, I am trying to learn how to create relations I got a sample from a web site and it works great, but when I tried to make one; it is not working. Can some one tell me what I am doing wrong. It gets down to the last relation …

0
84
Member Avatar for nkgawade

Hi All, In my application's DataGridView there are 3 ComboBoxColumns. Out of which two are filled by Enumerator type and one from DataSet. I set Generic Class object as DataSource to DataGridView. Based on the values in this object I want those ComboBoxColumns values to be selected and relevant DisplayMember …

0
91
Member Avatar for kibr987

Hi, I am a c# learner and I have got a problem - I have not much clue, please help. I have a windows form with two text boxes and a button called 'save'. If I click the save button - It should connect to the sql server express then …

Member Avatar for finito
1
79
Member Avatar for pee2002

Hi! I´m communicating via webservices with the Server (where's installed the database) and the c# application. So, **i dont have direct access with the database** Somehow, i receive a DataSet with 3 tables inside: [url]http://img339.imageshack.us/img339/5171/90768184.png[/url] And would like to populate 3 combobox like this: [url]http://img97.imageshack.us/img97/6145/29315365.png[/url] Which (as you already see) …

Member Avatar for kvprajapati
0
102
Member Avatar for OnlyDanny

:unsure: I dont know y this happens...i try a lot of times but....anyways, the problem is that, the crystal report does not show the actual result when an sql query is being used to extract data, even from a single table...while it runs correcty in MS Access where i have …

0
22
Member Avatar for sdhawan

hi guys i am trying to fill datagrid from database.I using the following code.Can anyone tell me what am i doing wrong. [code] public Form1() { InitializeComponent(); richTextBox1.Text = "Word: I \nDefinition:"; richTextBox3.Text = "Word: I \nDefinition:"; label2.Text = "Hindi"; dateTimePicker1.Visible = false; SqlDataAdapter dtadp = new SqlDataAdapter(); DataTable dtbl …

Member Avatar for sdhawan
0
94
Member Avatar for d3fcon

Hi All, I'm new to web dev and c# so please bare with me I am trying to create a dynamic gridview in a web form for users to to answer questions with (code below). The dificulty im having is that i am nesting a dropdwonlist in the gridview and …

Member Avatar for nebyas
0
115
Member Avatar for chandruswami

In C#.Net, I have a dataset containing only one column,.. i want to remove the first row,.. Can anyone help me?

Member Avatar for kvprajapati
0
66
Member Avatar for ajwei810192

This is an example I have grabbed from W3School, and for the purpose of my question, I have modified it and put in the code here: [CODE] <?php // Make a MySQL Connection mysql_connect("localhost", "admin", "1admin") or die(mysql_error()); mysql_select_db("test") or die(mysql_error()); // Get all the data from the "example" table …

Member Avatar for rajarajan2017
0
126
Member Avatar for ticktock

Hey all, having a little trouble transferring my listview items into a database. I have transfered all of the listview items into a List<> for use during the population of the items in my database here is my dataaccessor class, it contains the reader writer and writer statements generator: [CODE] …

Member Avatar for finito
0
264
Member Avatar for Danny_501

Hi i am using vb to make a hospital system which works with a access database i am having an issue with the updatign function to the database this time round instead of hard codding the connection i used the connection/data source wizard in microsoft visual studio 2008 and there …

Member Avatar for detoxx
0
91
Member Avatar for Aldius

Hello all, I'm somewhat new to programming but I had a quick question. I have created a program to take a text file and convert it into a datatable. Unfortunately, however, I seem unable to attach this file to a database. I am getting an invalid object error stating that …

Member Avatar for detoxx
0
123
Member Avatar for jellybeannn

The DataTable's Rows show likw this, how do I fix it. [B]Month1[/B] [B]Month2[/B] [B]Month3[/B] 1 2 3 1 2 3 1 2 3 [code] double C146_Calc = 0.0; protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { // create the table DataSet ds = GetTable(); outputView.DataSource = ds; outputView.DataBind(); …

Member Avatar for jellybeannn
0
131
Member Avatar for d3fcon

Hi All, I'm new to web dev and c# so please bare with me :) I am trying to create a dynamic gridview in a web form for users to to answer questions with (code below). The dificulty im having is that i am nesting a dropdwonlist in the gridview …

0
72
Member Avatar for glubbish

Hi all, When I click on the add button I get "exception class EdatabaseError with message 'DBedit2: Field 'RoomNumber' not found I am trying to get the max roomnumber to insert a new room max(roomnumber)+1 Its a fundamental hole in my knowledge here, on how to get a result from …

Member Avatar for glubbish
0
671
Member Avatar for sdhawan

Hi Guys, I am trying to insert hashtable in databse but one of the key in hashtable is null.Can anyone help me write an exception for this.Or if i can just move to the next key . Thanks a lot [code] private void btnUrdu_Click(object sender, EventArgs e) { SqlConnection cn …

Member Avatar for Ketsuekiame
0
133
Member Avatar for bghodsi

Hi folks: Can anyone tell me what I am doing wrong in the coding below: [code] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Try Dim ConnectionString As String = "Server=hp;database=library;integrated security=SSPI" MessageBox.Show("Connection established") Dim sql As String = "SELECT snippetID, snippetName, snippetSource, snippetCode FROM snippet …

Member Avatar for meffe
0
97
Member Avatar for sivaprakashm

i can't able to display series2 dataset value in chart Any one explain me how to solve this problem Need Help Thanks in advance[code]dataset.addValue(plan, series1, category); dataset.addValue(actual, series2, category); CategoryItemRenderer renderer = plot.getRenderer(); renderer.setItemLabelPaint(Color.white.brighter()); for(int i =0;i<var.length;i++) { renderer.setLabelGenerator(new LabelGenerator(var[i])); renderer.setItemLabelFont(new Font("Serif", Font.PLAIN, 20)); renderer.setItemLabelsVisible(null); renderer.setSeriesItemLabelsVisible(0, false); renderer.setSeriesItemLabelsVisible(1, true); } …

0
55
Member Avatar for glubbish

I have been able to extract a single column with help here but now I want to get two, but the same process does not seem to work. [code=pascal] Procedure Tform1.showroom; begin adoquery1.close; adoquery1.SQL.Clear; ADOQuery1.SQL.Add('Select roomname,description from Rooms'); adoquery1.Open; end; procedure TForm1.FormCreate(Sender: TObject); begin ADOConnection1.KeepConnection := false; datasource1.DataSet := adoquery1; …

Member Avatar for glubbish
0
265
Member Avatar for kdw3

Hi All. I am relatively new to programming so this may seem like a trivial question, but here goes. On my form I have a datagridview which is bound to a 'Supplier' table in Access 2003. Once I click on a record on the DataGridView, textboxes below which are also …

Member Avatar for kdw3
0
283
Member Avatar for Sidiq

Hi All! I am new to Vb.net & ado programming so this really just for educational purpose. basically i have a form with a datagrid set to readonly. i have 5 textboxs. when a cell is clicked its value in the row is output to the following textboxs on the …

Member Avatar for steveneaster
0
142

The End.