If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > Syntex error (missing operator) in query expression

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-14-03, 09:58
Sangameshwar Sangameshwar is offline
Registered User
 
Join Date: Oct 2003
Posts: 1
Red face Syntex error (missing operator) in query expression

Hi....

I am getting the problem while I am run the following query in Visual Basic.

Table name : Rel
Database : Access
ad : ADO connection
rd : ADO Recordset

I am trying to retriving the records from table when I click the combo box.


rd.open "Select Department,Gono,Godate,Amtrel from Rel where department = " & combo1.text, ad

error is : Syntex error (missing operator) in query expression

kindly any body can help me to solve this problem. my email-id is superman_mukkamala@yahoo.co.in

Thank-U
Sangameshwar
Reply With Quote
  #2 (permalink)  
Old 10-15-03, 05:23
Marvels Marvels is offline
Registered User
 
Join Date: Jul 2003
Location: Amsterdam, Nederland
Posts: 449
Lightbulb with text use the like operator

rd.open "Select Department,Gono,Godate,Amtrel from Rel where department LIKE " & combo1.text, ad
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On