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
~375.88K People Reached
Interests
Travelling with cycle, Reading and Learning, Making friendship.
Favorite Tags
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
141
Member Avatar for Amit_108
Member Avatar for Santanu.Das
0
154
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
308
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
135
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
753
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
319
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
494
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
544
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
455
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
462
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
410
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
629
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
852
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
425
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
509
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
520