Posts
 
Reputation
Joined
Last Seen
Ranked #252
Strength to Increase Rep
+10
Strength to Decrease Rep
-2
86% Quality Score
Upvotes Received
114
Posts with Upvotes
111
Upvoting Members
54
Downvotes Received
17
Posts with Downvotes
10
Downvoting Members
13
23 Commented Posts
~379.16K People Reached
Interests
Travelling with cycle, Reading and Learning, Making friendship.
Favorite Tags

467 Posted Topics

Member Avatar for Zazy

Never think like a lazy one. Think deeply how could you do it by writing your own code which can give more grip on codification. You can use selection changed event of text box to do your owns.

Member Avatar for fenichitofelini
0
144
Member Avatar for Amit_108
Member Avatar for UKnod
Member Avatar for Maylene_1

Use of Executescalar() function to get the count of record numbers. Therefore, you must have to use Count keyword before StudentId into the select statement. My suggestion: Store StudentId and do same in logout procedure as you do in log in

Member Avatar for Santanu.Das
0
315
Member Avatar for Phillip_8

Form Load() event is not a way to show a form in wpf. There has no conception exists as fom like vb form in wpf. Every one is a window. Wpf does not support mdi

Member Avatar for Santanu.Das
0
140
Member Avatar for සශික

@සශික : Nothing wrong in your codes to print data. Just alter some lines in your codes. 1) Never declare the variable `Dim mRow As Integer = 0` at Event level like PrintPage Event, always declare it at Form level and set its value to 0 at BeginPrint Event. 2) …

Member Avatar for anoshmilton
0
2K
Member Avatar for Satyam_1

"**+**" Charactor always concatinates two string type values i.e "200" +"200" always give you the result **200200** instead of **400**, because you treat them as string type. If you declare them as numeric type then it will give you 400. Your mistake is at line no 2. Declare **tot** as …

Member Avatar for Nour_4
1
13K
Member Avatar for php2sheik

In my project I did it in VB.Net. But I do not know PHP. If you like I can post it, but it is in vb2010. You would convert it in PHP.

Member Avatar for Vinoth_7
0
4K
Member Avatar for Santanu.Das

Now I am going through a project with colors. And then I think that if I try to display color values with their names in a simple combobox, it could be amazing. I tried and did it and it is looking like ![Capture3.png](/attachments/small/4/4473f7608016edcb5981090cccc80593.png "align-left") And ![Capture4.png](/attachments/small/4/87a5e5686d66033648a3e0ab787d6778.png "align-left") And finally the …

Member Avatar for michael.allen02
0
6K
Member Avatar for Mike Bishop

Function **OleDbCommand.ExecuteNonQuery()** always returns an integer value of affected row So, to get the number of affected Row you must have to use it as function type not statement type. i.e. Dim icount As Integer = sqlCom.ExecuteNonQuery()

Member Avatar for SoftBa
0
792
Member Avatar for nishita_1

You can use [**Union All**](https://www.daniweb.com/programming/databases/threads/506558/select-data-from-two-mysql-tables-using-one-query-not-working-properly#post2211792) Clause. Your sql syntax should be SELECT tt.product_id, tt.purchase, tt.sale FROM (SELECT product_id, SUM(quantity) AS purchase, SUM(0) AS sale FROM purchase GROUP BY product_id) UNION ALL (SELECT product_id, SUM(0) AS purchase, SUM(quantity) AS sale FROM sale GROUP BY product_id) tt

Member Avatar for Santanu.Das
0
320
Member Avatar for RedWGS
Member Avatar for Satyam_1

My opinion is you can solve your problems most easily if you create two seperate functons one to check Blank Text and another to check duplicate value. If the function (1) finds the blank text then exit from save. and if the function (2) finds the duplicate value from database …

Member Avatar for kamal_22
0
5K
Member Avatar for Aina_1

From my opinion: before use **If sqlRead.Read() Then** at line No. 27 of your code, ensure that the Reader object has any row to read on matching parameters you supplied in your sql statement. If the reader does not hold any record it may raised an exception, because it has …

Member Avatar for tinstaafl
1
1K
Member Avatar for Duo

Change **ADP = New OleDbDataAdapter(query, cnnOLEDB)** with **cmdOLEDB = New OleDb.OleDbCommand(query, cnnOLEDB)** at the line no 78. without initializing command object u canot use it.

Member Avatar for Santanu.Das
0
502
Member Avatar for Papa_Don

from my opinion: when you have tried to add parameters with command object by using **parameters.Add()** method you must have to convert the type of the value which you want to save in respect of the parameter type you declared in your code. Exception could be raised from your code …

Member Avatar for Santanu.Das
0
3K
Member Avatar for k_7

Please post, what you tried in your sql statement. Clue: just Join and select the max value.

Member Avatar for Sherin Mathew
0
545
Member Avatar for mksaeed

' Check if any rows exist If rd.Read() Then If rd.GetString(3) = "small" Then MessageBox.Show("small") ElseIf rd.GetString(3) = "Big" Then MessageBox.Show("big") ElseIf rd.GetString(3) = "Midium" Then MessageBox.Show("Mid") End If End If This is not the proper way to check any record if it exists. datareader.Read() always produce a single record …

Member Avatar for Santanu.Das
1
3K
Member Avatar for mmangold322

> strSearchText = TextBox2.Text > Dim sqlquery As String = "Select * from Housedat where (PROPID LIKE '%" & TextBox2.Text & "%')" Why do you not using the 'strSearchText' ? In Sql Query any string type condition must be within a single quation. strSearchText = TextBox2.Text Dim sqlquery As String …

Member Avatar for Santanu.Das
0
1K
Member Avatar for JModak

Fiestly please show the code what you did. Secondly, for every catagory at the end the subtotals should be added as a listitem for that catagory. Or you have to create an User Control for your use.

Member Avatar for Santanu.Das
0
456
Member Avatar for 404notfound

>If dsTrainingItems.Tables("TrainingItems").Rows(inc).Item("Sanitation") = 1 Then >chkSanitation.Checked = True >End If Where from you get the table name "TrainingItems" ? You can call by using index from the tables array of the dataset. It should be If dsTrainingItems.Tables(0).Rows(inc).Item("Sanitation") = 1 Then chkSanitation.Checked = True

Member Avatar for tinstaafl
0
465
Member Avatar for mirapsm

You can use **MINUS Clause** in SQL Statement. Multiple queries can be put together and their output combined using the minus clause. The **Minus** clause outputs the rows produced by the first query, after **filtering** the rows retrieved by the second query. The statement should be "SELECT DISTINCT id FROM …

Member Avatar for Jun_7
0
4K
Member Avatar for Sam_49

FROM WHICH TABLE YOU ARE GETTING THESE `[AMOUNT],[INTEREST],[TERMS], [TotalInterest]`. YOU MUST SPECIFY THEM IN FROM CLAUSE. YOU CAN USE `BETWEEN` CLAUSE FOR A RANGE OF DATES IN WHERE CLAUSE. `WHERE (LOANS.RELEASED BETWEEN @d1 and @d2)

Member Avatar for Reverend Jim
0
411
Member Avatar for Stephen_28

You can do it by using a `STRUCTURE`which can give you full functionality to solve your problem. Read [this post](https://www.daniweb.com/programming/software-development/threads/495590/help-with-formating-zones#post2168625) you can get your way to solve the problem by yourself.

Member Avatar for Santanu.Das
0
2K
Member Avatar for Santanu.Das

A cumulative update May-18 released by Microsoft, there are some new features added and I update my W10 in my lap but after updating VS-15 Pro does not load its full features, when I try to run it and for that reason I do not open any solution or create …

Member Avatar for ddanbe
0
631
Member Avatar for Izzah_2

`adapterDelete.DeleteCommand = MysqlConnection.CreateCommand()` `adapterDelete.DeleteCommand.CommandText = sql` These two lines are caused for your error. `adapterDelete` does not declare in your code. except that every thing are ok.

Member Avatar for Santanu.Das
0
865
Member Avatar for Mia_5

You can get an idea from [this post](https://www.daniweb.com/programming/threads/507797/how-to-authentication-users-using-ms-access) in daniweb

Member Avatar for Santanu.Das
0
427
Member Avatar for johndohmen1963
Member Avatar for johndohmen1963
0
1K
Member Avatar for KushMishra

You can read this [overview](https://docs.microsoft.com/en-us/dotnet/framework/wpf/advanced/drag-and-drop-overview), which can help you.

Member Avatar for KushMishra
0
511
Member Avatar for Rashid_5

Post your codes which you tried to store data to database from datagridview by which we can help you to solve your problem. Well! pick up the current row (i.e. the row in which you are writting the values) of the datagridview and creating an sql command you can store …

Member Avatar for Santanu.Das
0
528
Member Avatar for fazle_1

From my opinion your problem should be in construction of sql statement i.e.`"SELECT '#' FROM tblBasicInfo, tblAccData WHERE ID =" + Convert.ToInt32(AcNotextBox.Text)` Use **Inner join** clause to join two tables. You can try it "SELECT A.ID,A.Name,.....,B.Pro FROM tblBasicInfo A Inner Join tblAccData B On B.ID=A.ID WHERE A.ID =" + Convert.ToInt32(AcNotextBox.Text) …

Member Avatar for Santanu.Das
0
311
Member Avatar for Link_1

From my opinion your error should be occurred in between these following lines. `cmd1.ExecuteNonQuery()` `cmd1.CommandText = InsertOrderTBSelect` First dispose/close the sqlcommand object then use it for another sql statement.

Member Avatar for Santanu.Das
0
2K
Member Avatar for Ja_1
Member Avatar for johndohmen1963

Split the sentence with space and store it in an array then convert to proper case of the first and last element of that array. After that join the array elements with space.

Member Avatar for johndohmen1963
0
392
Member Avatar for JModak

Group By clasue always produce a count or summation of another field. It never shows other feilds, if you tried to so the values of other fields without aggregating them it shows an error message. If you want to group by with a single field you only can get the …

Member Avatar for Santanu.Das
0
397
Member Avatar for සශික

To backup data you must have to execute a process to run `mysqldump.exe` file, which resides in C:\Program Files\MySQL\MySQL Server 5.?\bin\ folder. The syntax is `mysqldump --host=[HOSTNAME] --user=[USER] --password=[PASSWORD] -R [DATABASE NAME] > [PATH TO BACKUP FILE]`. To restore data you must have to execute a process to run `mysql.exe` …

Member Avatar for Adwaith
0
2K
Member Avatar for kberrianjr

You can read this [link](https://www.daniweb.com/programming/software-development/threads/320160/visual-basic-reading-text-file-into-array) to read a text file to get the lines.

Member Avatar for Reverend Jim
0
694
Member Avatar for Maheshwaran
Member Avatar for Santanu.Das
0
437
Member Avatar for Sana'a_1

INSERT INTO <DESTINATION TABLE NAME> SELECT * FROM <SOURCE TABLE NAME> BUT FIELDS NAME AND TYPE OF DESTINATION SHOULD BE SAME AS SOURCE.

Member Avatar for Sana'a_1
0
397
Member Avatar for Md_22

ya! Jim more warmer than yours. 8C in birbhum district at morning, should be 12C in kolkata

Member Avatar for Dani
0
235
Member Avatar for ddanbe
Member Avatar for ddanbe
2
486
Member Avatar for dongtrien

With reference from @AndrisP you will have to use the clause `on delete cascade`. But you have no need to use `joining` between three tables. Simply delete record(s) from the table `TABHDBHCHUYEN`. DELETE FROM TABHDBHCHUYEN WHERE (CONVERT(VARCHAR, NGAYCHUYEN, 101) <= '01/07/2017') which can delete all records from TABHDBH & TABHDBHCT …

Member Avatar for AndrisP
0
346
Member Avatar for sasank_1

Reverend Jim is correct. To get support from various expertise you must have to show your effort, from which every one can understand for what cause you didn't get your desired result. There are many expertise present here to help you about your codes from their hart. well; you can …

Member Avatar for Reverend Jim
0
701
Member Avatar for JModak

@Jayanta_1: In a parameterised sql statement you must have to use the parameter before adding/creating the parameter. In your first sql statement you didn't use the parameter into the statement. use of parameterised sql statement is the best practice to prevent your database from sql injections. The codes should be …

Member Avatar for dspnhn
0
2K
Member Avatar for sashiksu
Member Avatar for Elvis J.
0
6K
Member Avatar for Abdul_41

despite of crystal report vb.net2008 has a rich report viewer to display and print your report. You can use report document or print document to do your report most easily.

Member Avatar for Santanu.Das
0
173
Member Avatar for wilsonchama

More shortly the codes should be For Each iItem As ListViewItem In ListView4.SelectedItems Label2.Text = Val(Label2.Text) - Val(iItem.SubItems(1).Text) 'And also remove the selected Item here Next Hope it can help you.

Member Avatar for Duane_2
0
2K
Member Avatar for Joe_28

Go through the rows , pick and add your desired cell values. Dim x As Double = 0.0# Dim y As Double = 0.0# For i As Integer = 0 To DataGridView1.Rows.Count - 1 x += CDbl(DataGridView1.Rows(i).Cells(4).Value) y += CDbl(DataGridView1.Rows(i).Cells(5).Value) Next TextBox1.Text = x TextBox2.Text = y

Member Avatar for happygeek
0
180
Member Avatar for UI

Incorrect sql syntax used to update a table. >$sql = "UPDATE users SET Status_To_Public "$db_status_to_public" WHERE Username = '".$user."'"; Use an equal to sign i.e. `=`to set a value to a field of a table. $sql = "UPDATE users SET Status_To_Public ="$db_status_to_public" WHERE Username = '".$user."'";

Member Avatar for diafol
0
262
Member Avatar for itprosam

> Text textbox but its value should be assigned to Modular Variable LN and then applicable to all sub procedures in that frmMain. >Modular Variable LN ??????? You have to read the [declaration & scope](https://msdn.microsoft.com/en-us/library/ms973875.aspx) of variables.

Member Avatar for Minimalist
0
451

The End.