Solved

Missing Operand after the 'cars' operator

Posted on 2011-09-30
3
715 Views
Last Modified: 2012-05-12
Dim Newcars as string="New cars"

Dim dv As New DataView(GetProductsdate(),"Product_Name="&Newcars, "displayorder ASC", DataViewRowState.CurrentRows)
GetProductsdate() returning data table.

I am getting the Syntax error exception.
Missing Operand aMissing Operand after the 'cars' operator fter the 'cars' operator
How to fix it.

Thanks
0
Comment
Question by:KavyaVS
3 Comments
 
LVL 22

Assisted Solution

by:plusone3055
plusone3055 earned 100 total points
ID: 36892293
Dim dv As New DataView(GetProductsdate() & "Product_Name="&Newcars, " & "displayorder ASC" &  DataViewRowState.CurrentRows)
GetProductsdate() returning data table.

0
 
LVL 29

Accepted Solution

by:
Paul Jackson earned 400 total points
ID: 36892329
try :
Dim dv As New DataView(GetProductsdate(),"Product_Name='" & Newcars & "'", "displayorder ASC", DataViewRowState.CurrentRows)
0
 

Author Closing Comment

by:KavyaVS
ID: 36892435
Thanks
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VB.Net - TypeInitializer Error 25 32
VB.net Open Folder in Windows Explorer 3 57
Convert datetime to time string 10 28
Get month and date in a format 4 34
I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question