Click here to Skip to main content
12,699,807 members (35,125 online)

Visual Basic

 
GeneralRe: WebBrowser Dock covers up statusstrip Pin
Eddy Vluggen31-Jan-13 11:12
mvpEddy Vluggen31-Jan-13 11:12 
GeneralRe: WebBrowser Dock covers up statusstrip Pin
NSoft Studios3-Feb-13 13:58
memberNSoft Studios3-Feb-13 13:58 
AnswerRe: WebBrowser Dock covers up statusstrip Pin
rohitvermasrt31-Jan-13 19:28
memberrohitvermasrt31-Jan-13 19:28 
QuestionQuery dataTable with .Compute Pin
mebjen30-Jan-13 10:05
membermebjen30-Jan-13 10:05 
Hi All,
Can't figure this out . . . .
I am trying to run a .Compute against a dataTable but am getting an 'EvaluateExecption was unhandled' error: Cannot perform '<' operation on System.String and System.Double.



Here is my code:
Dim salesTable as DataTable
salesTable = New DataTable
With salesTable
.Columns.Add("invNo")
.Columns.Add("custId")
.Columns.Add("custName")
.Columns.Add("shipToId")
.Columns.Add("shipToName")
.Columns.Add("shipToCity")
.Columns.Add("shipToState")
.Columns.Add("invDate")
.Columns.Add("category")
.Columns.Add("itemId")
.Columns.Add("desc")
.Columns.Add("shipQty")
.Columns.Add("extPrice")
End With

Public Sub getYrSales(ByVal stn As String)
Dim yrSales = salesTable
Dim x0 As Object = yrSales.Compute("SUM(extPrice)", "shipToName = '" & stn & "'" & "AND invDate >" & begDate & "AND invDate <" & endDate)
End Sub
Thanks,

MB

AnswerRe: Query dataTable with .Compute Pin
Dave Kreskowiak30-Jan-13 11:20
mvpDave Kreskowiak30-Jan-13 11:20 
GeneralRe: Query dataTable with .Compute Pin
mebjen30-Jan-13 11:45
membermebjen30-Jan-13 11:45 
GeneralRe: Query dataTable with .Compute Pin
Dave Kreskowiak30-Jan-13 15:28
mvpDave Kreskowiak30-Jan-13 15:28 
QuestionWindows admin mode mistries Pin
solankinkdpr30-Jan-13 2:11
membersolankinkdpr30-Jan-13 2:11 
AnswerRe: Windows admin mode mistries Pin
Eddy Vluggen30-Jan-13 8:51
mvpEddy Vluggen30-Jan-13 8:51 
GeneralRe: Windows admin mode mistries Pin
solankinkdpr30-Jan-13 20:07
membersolankinkdpr30-Jan-13 20:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.170118.1 | Last Updated 23 Jan 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid