Advertisement

09.09.2008 at 01:23PM PDT, ID: 23717096
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.1

Error Operator '>' is not defined for type 'DBNull' and type 'DBNull'.

Asked by prinsbj in .NET, Visual Basic Programming, Microsoft Visual Basic.Net

When I save my record with RowValidating I get a error:

Operator '>' is not defined for type 'DBNull' and type 'DBNull'.

I've paste my code below.

The error is in this row:
        If OrderTransactionDataGridView.CurrentRow.Cells("QuantityOut").Value > OrderTransactionDataGridView.CurrentRow.Cells("MaxOut").Value Then

Hope somebody can help me.Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
Private Sub OrderTransactionDataGridView_RowValidating(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellCancelEventArgs) Handles OrderTransactionDataGridView.RowValidating
        Dim HasErrors As Boolean = False
        Dim ExtraErrMsg As String = "Current Status does not support data in this field"
 
        OrderTransactionDataGridView.EndEdit()
 
        Dim value As String
 
        ' The Unit Column
        If OrderTransactionDataGridView.CurrentRow.Cells("QuantityOut").Value > OrderTransactionDataGridView.CurrentRow.Cells("MaxOut").Value Then
            OrderTransactionDataGridView.CurrentRow.Cells("QuantityOut").ErrorText = ExtraErrMsg
            HasErrors = True
        Else
            OrderTransactionDataGridView.CurrentRow.Cells("QuantityOut").ErrorText = String.Empty
        End If
 
 
        ' Let 'em know they have an error, and don't let 'em leave
        If HasErrors Then
            e.Cancel = True
            Beep()
        End If
    End Sub
[+][-]09.09.2008 at 01:26PM PDT, ID: 22431860

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.09.2008 at 02:15PM PDT, ID: 22432375

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.09.2008 at 02:29PM PDT, ID: 22432505

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.09.2008 at 02:34PM PDT, ID: 22432543

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.09.2008 at 02:37PM PDT, ID: 22432573

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.09.2008 at 02:42PM PDT, ID: 22432601

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.09.2008 at 02:50PM PDT, ID: 22432668

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .NET, Visual Basic Programming, Microsoft Visual Basic.Net
Sign Up Now!
Solution Provided By: VBRocks
Participating Experts: 2
Solution Grade: A
 
 
[+][-]09.09.2008 at 02:55PM PDT, ID: 22432703

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.09.2008 at 02:57PM PDT, ID: 22432714

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.09.2008 at 03:02PM PDT, ID: 22432757

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.09.2008 at 03:05PM PDT, ID: 22432782

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.09.2008 at 03:10PM PDT, ID: 22432809

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-44 / EE_QW_2_20070628