Solved

Missing Operand after the 'cars' operator

Posted on 2011-09-30
3
711 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
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 …
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

785 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