2,634 Topics

Member Avatar for
Member Avatar for pandeysk_13

hi all, i am in trouble to solve this. i want to show the report in the manner in which the tablix column 1 record should continue in the same page in column 2. LIKE THIS: column1 column 2 1 6 2 7 3 8 4 9 5 10 and …

0
175
Member Avatar for jared.geli

Hi guys about my previous post on [Copy Selected rows from Datagrid to another](http://www.daniweb.com/software-development/vbnet/threads/471088/copy-selected-rows-from-datagrid-to-another) that was answered by oussama_1 and Deep Modi, I was wodering if is it possible to detect that there is a similar row between the 2 Datarids to avoid redundancy? Does it require a datatable or …

Member Avatar for oussama_1
0
139
Member Avatar for Wael1988

hello i have an error while am trying to retrieve data from a tb in data base using Stored Procedure any help please? this is my web.config <?xml version="1.0"?> <!-- For more information on how to configure your ASP.NET application, please visit http://go.microsoft.com/fwlink/?LinkId=169433 --> <configuration> <connectionStrings> <clear/> <add name="myConnectionString" connectionString=" …

0
139
Member Avatar for gbhs

Hi I am using vs2008 Professional. Some columns of my dataset are presented in a matrix correctly. However,there is another dataset column I need to add. How can I insert a new column which is not an aggregate column to the right Thanks

0
74
Member Avatar for Typhooncoder

Hi guys how do I sort out this error = "object reference not set to an instance of an object" try { String connection = "Data Source=(LocalDB)\\v11.0;AttachDbFilename=C:\\Users...."; SqlConnection conn = new SqlConnection(connection); SqlCommand db = new SqlCommand("select * from Tbl", conn); SqlCommandBuilder builder = new SqlCommandBuilder(da); ds = new DataSet(); …

Member Avatar for cgeier
0
219
Member Avatar for 2jewel

Hello all, I am having an issue learning some things in visual studio 2013 asp.net using vb. I am following a fellows instruction on doing a report with a parameter. In this part of the code: Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Protected Sub Button1_Click(sender As …

Member Avatar for |-|x
0
390
Member Avatar for Philip Carlo

an i ask for help? what is wrong with my codes thanks in advance Sub show1() Dim DReader As MySqlDataReader SqlCmd = New MySqlCommand("SELECT * FROM book WHERE accesion_num = '" & b_id & "' ", SqlCon) DReader = SqlCmd.ExecuteReader While DReader.Read accnum.Text = DReader.Item(0) isbn.Text = DReader.Item(1) txteditbooktittle.Text = …

Member Avatar for Rahul47
0
125
Member Avatar for IT_Techno

hi I have filled my datasetfrom my sql db then used that data to show at crystal report, when i go back again to fill it with another data it show to me the old one why ? how can i solve this problem ?? Best Regards

Member Avatar for IT_Techno
0
183
Member Avatar for strRusty_gal

Hi Everyone, I really require your assistance on the issue. I was debugging my code [C# console application] and i step down to the place where there is DATASET in my code and i clicked on the magnifying glass to see the data inside the DATASET. after clicking on the …

Member Avatar for Maligui
0
355
Member Avatar for mansi sharma

I want to fill GridView ,But i dont want to use datasource..I want to use the method,thru which i add the data using row by row As in VB.net [code] Dim row0 As String() = {"A","B","C"}; Me.DataGridFile.Rows.Add(row0) [/code]. [code] public partial class refresh : System.Web.UI.Page { string query; SqlCommand cmd; …

Member Avatar for brianmanee
0
1K
Member Avatar for laura301019

Hi I have a page for users to edit their details, I've used the following code to prefill the form. protected void loadData() { OleDbConnection conn = new OleDbConnection(); conn.ConnectionString = ConfigurationManager.ConnectionStrings["ProjectDatabaseConnectionString"].ConnectionString; conn.Open(); DataTable dt = new DataTable(); DataSet ds = new DataSet(); ds.Tables.Add(dt); OleDbDataAdapter da = new OleDbDataAdapter("SELECT * …

Member Avatar for JorgeM
0
165
Member Avatar for danielagaba

Hi I've run this code and i get no errors but my form data is not saved on the dataset or database. This is the click event code. [code] Dim conn As New SqlConnection("Data Source=.\SQLEXPRESS; AttachDbFilename=|DataDictionary|\TMSDB.mdf;Integrated Security=True Instance=True") Dim ds As New DataSet conn.Open() Dim Adp As New SqlDataAdapter("select * …

Member Avatar for jigar.makhija
0
969
Member Avatar for christan

Greetings, Can someone please tell me on how to use this class? Public Function GetDataFromStoredProcedure(ByVal spName As String) As DataTable Dim ds As New SqlDataAdapter Dim dt As New DataTable Dim cmd As New SqlCommand Dim con As New SqlConnection(_connectionString) Try _success = True con.Open() cmd.CommandType = CommandType.StoredProcedure cmd.CommandText = …

Member Avatar for christan
0
187
Member Avatar for ahmed_one

Development Environment used: 1.Microsoft Visual Studio 2010 2. Programming Language: C# 3. Database MySql I am trying to use BCrypt class by Derek Slager for creating and authenticating username and password. A form is use to create new user to save Username and Password to database, but this Password is …

0
98
Member Avatar for xile27

I would like to do is to read CSV file begin to display to datagridview. show all the rows in the CSV but only the columns between START and END. This code below is for import all data from csv to datagridview. If OpenFileDialog1.ShowDialog(Me) = DialogResult.OK Then Try Dim fi …

Member Avatar for tinstaafl
0
594
Member Avatar for jalmeida

Hi, im developing a software in vb 2012 with a access 2010 local db, but for some reason i can´t remove records from the database. the following code breaks on line 6. i cant find the problem. the dataset is transmissoes and the the table is utilizador_avancado. can anyone help, …

Member Avatar for kRod
0
428
Member Avatar for lulu79

hi, I have a Gridview like below: ![Gv3](/attachments/fetch/L2ltYWdlcy9hdHRhY2htZW50cy8zL0d2My5KUEc%3D/283 "align-left") What I want is: 1) User can click at **LINE** column, for example user click at **M23** and it will redirect to other page. 2) At the other page, it will display something like this: **Please insert countermeasure for M23** where …

Member Avatar for DeepKiran
0
744
Member Avatar for satti

I want to print data from XML in readable formate which is the last section of XML file .My code writes data from database to XML file . Here is a code i use to write XML Note: myread is a dll containing dataset,data adapter and connection string. ds As …

Member Avatar for G_Waddell
0
1K
Member Avatar for jared.geli

Hi guys. I need help in copying selected row from DataGrid to another. What I want is if I click a row it will be copied to another DataGrid. I set my DataGrid Selection Mode to FullRowSelect. Is it possible for me to update my database using the copied rows. …

Member Avatar for jared.geli
0
4K
Member Avatar for Ian_3

Recieving the error "Dynamic SQL generation is not supported against multiple base tables." When pressing the save button Code for Save button: private void btnSave_Click(object sender, EventArgs e) { DataGridQuestions.EndEdit(); adapter.Update(ds, "Questions"); MessageBox.Show("Updated"); DataBind(); } Code for filling data adapter private void DataBind() { string connectionString = ("Data Source=" + …

Member Avatar for Ian_3
0
2K
Member Avatar for Nebil

Hi all, I was going through a lot of resources on how to populate a dataset.And i kind of got an error when trying to populate the created dataset with 4 select statements. but my sql uses the where clause,the other statements i saw select certain columns and go to …

Member Avatar for Reverend Jim
0
163
Member Avatar for tashee2007

Hi, I have a problem with changing the password from Microsoft Access Database. I get an Error "[B]No data exists for the row/column[/B]". The password in the database is encrypted and when I change the password it should be decrypting the password and new password should be updated with encryption …

Member Avatar for yesha hingu
0
292
Member Avatar for jared.geli

Hi guys. I'm having problems in updating records in Excel. Whenever I update a cell the value I input it goes 4 cells above the intended cell and I know the reason. In my Select query: `SELECT * FROM [Sheet1$A5:R1048576] where [ITEM CODE] is not null` Meaning I skipped reading …

Member Avatar for jared.geli
0
228
Member Avatar for hawkz86

Hi I am a fresher to VB and now stuck with a code for my project. Project Description : I have a .xlsx Excel File which has two Coulmns "Key" and "Summary", I have populated combobox on the form using DataSet as shown below : Dim dt As New System.Data.DataTable() …

Member Avatar for hawkz86
0
857
Member Avatar for elianeasmar

Hello. I meed some help with this. I am trying to delete a record from database(SQL Server) Am i missing something? Private Sub cmdDelete_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdDelete.Click _DataSet.Tables(0).Rows(CInt(txtCurrent.Text) - 1).Delete() ' tho, it can remove the deleted rows ' we cannot call the DataSet.AcceptChanges …

Member Avatar for Begginnerdev
0
1K
Member Avatar for decade

Hello everyone. I would like to ask for your help, I've been stuck in this problem for wholde day. every time I run this code it gives me an error of "The report has no tables" even though I have a dataset. my dataset is datatable that came from the …

Member Avatar for G_Waddell
0
697
Member Avatar for hanusoft

This is an example of Inserting and Retrieving data from xml file. [code]private void Page_Load(object sender, System.EventArgs e) { // Put user code to initialize the page here if(!IsPostBack) { BindGrid(); } } private void BindGrid() { ds = new DataSet(); try { ds.ReadXml(@"c:\inetpub\wwwroot\WebApplication10\XMLFile1.xml"); DataGrid1.DataSource = ds; DataGrid1.DataBind(); } catch(Exception …

Member Avatar for ramkumar8765
0
515
Member Avatar for udaywalve

Hello can anybody send me sample project in VB.NET to ADD,EDIT, DELETE the Customer details....or any similar project for beginners.... just want to learn how to ADD, EDIT, DELETE DATA in the table using DATASET, DATA ADAPTER, DATAROW etc. Please send me the project. Thanks in advance

Member Avatar for manoudhaya
0
401
Member Avatar for venkates.99

1)On receipt of the signed MSA back from the customer, the original should be sent to the legal representative and a controlled copy should be sent to the TM/Account Manager by ___________. B D M DM 2)Runtime Profiling is used by which category of users? Developers and System Administrators Configuration …

Member Avatar for deceptikon
-1
487
Member Avatar for lyndata

i am using employee table to test if i am doing the whole program correct. I have 5 buttons. one is to add records and another to save(commit), to update, to delete and to clear. I am having trouble with the code to save the record to the data set. …

Member Avatar for ryanjayson
0
320
Member Avatar for pandeysk_13

hello all, its a very deficult situation for me, bcoz i am not expert thats way taking help from u all. problum : i m creating a project for commission calculation type in the form i have one combobox which is filled by ms access database containing parent ID. these …

Member Avatar for pandeysk_13
0
259
Member Avatar for Obaidullahrafiq

Hi, I am selecting value from one combobox and want to use its value to update the second combobox. but the error is that the second combobox is not showing any value. plz help me. namespace ShopSoftware { public partial class frmSelling : Form { public frmSelling() { InitializeComponent(); } …

Member Avatar for M.Waqas Aslam
0
175
Member Avatar for jared.geli

Hi again I want to display my table in excel to my datagrid. I want select the 5th row of my spreadsheet as the column header. I have no problems of displaying it in DGV when my column header is at the first row. Now I need to have my …

Member Avatar for jared.geli
1
1K
Member Avatar for poksmdpk

how to can i insert data in another table without using wizard dataset and i have a variable that date and time that can be used on date time picker please help can anyone simplyfy the code?

Member Avatar for Ancient Dragon
0
120
Member Avatar for Yeonng

Hi, I'm a beginner in Vb.net. I have a problem like this. My table name in dtabase is *tblsales* ![67f4b407a5443c6d48ba102a4779c9f2](/attachments/large/4/67f4b407a5443c6d48ba102a4779c9f2.JPG "67f4b407a5443c6d48ba102a4779c9f2") and i have 4 combobox in month and year ![81361dad1be3d14458ae4ad0a3aa9a55](/attachments/large/4/81361dad1be3d14458ae4ad0a3aa9a55.JPG "81361dad1be3d14458ae4ad0a3aa9a55") i need to find data between this 4 combobox. And this is the code i've tried before. For …

Member Avatar for Yeonng
0
1K
Member Avatar for bogdan.buduroiu

Well Hello daniweb, I want to point out that I am barely beginning to learn VB.net for my A-Level Computing Course. So, I was asked to make a Currency Conversion Program and make it have a Transaction Log that is automatically updated when the user makes a conversion. I chose …

Member Avatar for Reverend Jim
0
198
Member Avatar for salesman91

hi I am trying to save multiple images into one ID and I am getting no where ...I am posting the code so for storing and retrieving image (one image)...but need to store more than one ....need some help here ... using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using …

Member Avatar for salesman91
0
2K
Member Avatar for Raaif_1

I have added a access database to my project and created the connection, dataset and all via the wizard. But when I run the program I encounter error > An unhandled exception of type 'System.TypeInitializationException' occurred in System.Data.dll > Additional information: The type initializer for '<Module>' threw an exception. From …

Member Avatar for Mr.M
0
368
Member Avatar for johnrosswrock

Thank you all for helping me in completing my collage mini-project //form1 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.OleDb; using System.IO; using Microsoft.Office.Interop.Excel; using ClosedXML.Excel; namespace merge_excel { public partial class Form1 : Form { public Form1() { InitializeComponent(); …

Member Avatar for Warrens80
0
179
Member Avatar for HunainHafeez

i successfully designed and filled my Crystal report via code not via wizard. i added Crystal report via addNEWITEM i added dataset in aap_code via addNEWITEM i added datatable into dataset via addNEWITEM Via code i made report and filled dataset and table with data Run and display. Successfully done. …

Member Avatar for johni700
0
164
Member Avatar for HunainHafeez

it's confusing, see: 1. I added a dataset in app_code folder and then added a dummy datatable (field names similar to one in database), so it is visible to Crystal report in ADO.net datasets list. 2. Dragged all field names from Datatable to Crystal report. 3. Now as i added …

Member Avatar for LastMitch
0
160
Member Avatar for boher

In my project, at some point I tend to load all rows in my DataSet and add them to my FlowLayoutPanel in order of their "Time" Item. This is what I'm trying to do but I need the controls to be added first if their "Time" value are the oldest …

Member Avatar for chuchaykaw18
0
270
Member Avatar for saintrenz

I have query that updates the database but the problem was the datagrid is not updating.. i have to restart the program in order for the datagridview to take effect Imports System.Data.OleDb Public Class frmUsers Dim cnn3 = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\Renz\Documents\Visual Studio 2012\FINAL\Database\AuditDB.mdb;") Dim sql2 As String Dim ds1 As …

Member Avatar for chuchaykaw18
0
151
Member Avatar for jared.geli

Hi I need help in making an auto complete feature in my datagridview where if I input a certain cell it will automatically have a value or it will have a autocomplete suggestion (like a textbox link to a table) based on my other table. I don't have any clues …

Member Avatar for chuchaykaw
0
1K
Member Avatar for bluehangook629

Hello, I have created a report using SAP Crystal Report on Visual Studio 2010. As datasource, a interal dataset is used to populate the report which is included in my project. Everything seems to work fine until during runtime when I load the report onto the report viewer, it keep …

Member Avatar for bluehangook629
0
747
Member Avatar for jalmeida

Im puzzled, the thing is, i have a software that was running ok, with a connection of to access 2010 db. A rotine to add a customer, to the database that was already coded, started to fail. saing that the insert method of the tableadapter was not avalaible. the tableadapter …

Member Avatar for G_Waddell
0
200
Member Avatar for jalmeida

Hi, i need some help if possible. I designed a software on vb 2012 with a local access 2010 database, it runs ok,it add's delete and changes record's. However when i start the software it deletes the added records on the previous session. the software is designed with the dataset's. …

Member Avatar for G_Waddell
0
135
Member Avatar for HunainHafeez

i am trying to create and fill crystal report via code but an error occurred, REPORT HAS NO TABLES but when i try to extract data from DATASET then it shows exact data,no problem but doesn't work for Crystal report. CODE: protected void Dataset_load() { SqlConnection sqlcon = new SqlConnection(conStr); …

Member Avatar for HunainHafeez
0
1K
Member Avatar for Jamblaster

I am having a problem getting this code to work in deleting records from a database. The path to the database is correct and I have another couple of event handlers that work fine using this same datbase so I know that the path to the Db is good. Any …

Member Avatar for Jamblaster
0
179
Member Avatar for jalmeida

I' sorry but i need some help, i cant find the error. I want to add a new record to the database (access 2010), but although the dataset is updated, the added information does not save do DB. THe code bellow is the code that i run when press the …

Member Avatar for jalmeida
0
395

The End.