Click here to Skip to main content
       

Visual Basic

 
AnswerRe: WebBrowser Dock covers up statusstrip PinmvpEddy Vluggen30-Jan-13 22:36 
GeneralRe: WebBrowser Dock covers up statusstrip PinmvpDave Kreskowiak31-Jan-13 3:35 
SuggestionRe: WebBrowser Dock covers up statusstrip PinmvpEddy Vluggen31-Jan-13 3:38 
GeneralRe: WebBrowser Dock covers up statusstrip PinmvpDave Kreskowiak31-Jan-13 6:52 
GeneralRe: WebBrowser Dock covers up statusstrip PinmvpEddy Vluggen31-Jan-13 10:12 
GeneralRe: WebBrowser Dock covers up statusstrip PinmemberNSoft Studios3-Feb-13 12:58 
AnswerRe: WebBrowser Dock covers up statusstrip Pinmemberrohitvermasrt31-Jan-13 18:28 
QuestionQuery dataTable with .Compute Pinmembermebjen30-Jan-13 9: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 PinmvpDave Kreskowiak30-Jan-13 10:20 
GeneralRe: Query dataTable with .Compute Pinmembermebjen30-Jan-13 10:45 
GeneralRe: Query dataTable with .Compute PinmvpDave Kreskowiak30-Jan-13 14:28 
QuestionWindows admin mode mistries Pinmembersolankinkdpr30-Jan-13 1:11 
AnswerRe: Windows admin mode mistries PinmvpEddy Vluggen30-Jan-13 7:51 
GeneralRe: Windows admin mode mistries Pinmembersolankinkdpr30-Jan-13 19:07 
AnswerRe: Windows admin mode mistries PinmvpEddy Vluggen30-Jan-13 22:35 
GeneralRe: Windows admin mode mistries Pinmembersolankinkdpr31-Jan-13 2:29 
GeneralRe: Windows admin mode mistries PinmvpEddy Vluggen31-Jan-13 3:21 
AnswerRe: Windows admin mode mistries PinmvpDave Kreskowiak30-Jan-13 8:26 
Questionserial number with project Pinmemberolivertechy29-Jan-13 15:33 
AnswerRe: serial number with project PinmvpEddy Vluggen30-Jan-13 8:17 
QuestionParse XML Response String And Get Usable Variables Pinmemberpjgoodis29-Jan-13 4:46 
AnswerRe: Parse XML Response String And Get Usable Variables PinmemberAlan N29-Jan-13 6:05 
GeneralRe: Parse XML Response String And Get Usable Variables Pinmemberpjgoodis29-Jan-13 22:05 
GeneralRe: Parse XML Response String And Get Usable Variables [modified] PingroupStyleTech Solutions Ltd4-Feb-13 6:28 
QuestionMicrosoft ReportViewer PinmemberIgaBaro28-Jan-13 16:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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
Web03 | 2.8.140916.1 | Last Updated 20 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid