\r\n\r\n
Database / XML / Reporting Topics include: ADO.NET, SQL, XML structures and schemas, Crystal Reports, and other reporting tools

Go Back  Xtreme .NET Talk > .NET > Database / XML / Reporting > Missing Operator


\r\n \r\n \r\n \r\n
 
 
Thread Tools Display Modes
\r\n \r\n
\r\n
\r\n \r\n Hi
\r\nI wrote the next code:
\r\nstrDelete = "Delete tblUsers Where UserID=@UserID"
\r\nI got the next error:
\r\nSyntax error (missing operator) in query expression \'tblUsers Where UserID=@UserID\'
\r\n
\r\ntblUsers is the DataBase Table.
\r\nI tried many things without success.
\r\nMaybe someone know why is that?
\r\nThank\'s.\r\n
\r\n
\r\n \r\n
\r\n \r\n\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n
\r\n \r\n \r\n \r\n \r\n Reply With Quote\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n \r\n\r\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n\r\n'; pd[426587] = '\r\n\r\n \r\n\r\n
\r\n
\r\n
\r\n\r\n
\r\n \r\n\r\n\r\n\r\n\r\n\r\n \r\n\r\n\r\n\r\n \r\n \r\n\r\n
\r\n
\r\n  \r\n #2  \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n
\r\n \r\n Old\r\n \r\n 09-01-2004, 04:14 PM\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n
\r\n \r\n Joe Mamma\r\n Joe Mamma is offline\r\n\r\n\r\n
\r\n \r\n
\r\n
\r\n \r\n Hi
\r\nThank\'s for your answer, i have another error:
\r\nSyntax error in UPDATE statement.
\r\nI have update sub, i will not give you the whole sub only the main sentence:
\r\nstrUpdate = "Update tblUsers set UserName=@UserName, Password=@Password, RetypePassword=@RetypePassword, Email=@Email, Comments=@Comments Where UserID=@UserID"
\r\nI guess the problem is here.
\r\nThank\'s.\r\n
\r\n
\r\n \r\n
\r\n \r\n\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n
\r\n \r\n \r\n \r\n \r\n Reply With Quote\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n \r\n\r\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n \r\n
\r\n
\r\n
\r\n\r\n\r\n\r\n'; // next/previous post info pn[426581] = "426590,426587"; pn[0] = ",426581"; pn[426587] = "426581,426590"; pn[426590] = "426587,426581"; // cached usernames pu[0] = guestphrase; pu[29333] = "shlvy"; pu[33626] = "Joe Mamma"; // -->
Prev Previous Post   Next Post Next
  #1  
Old 09-01-2004, 03:22 PM
shlvy shlvy is offline
Regular
 
Join Date: Oct 2003
Posts: 68
shlvy is on a distinguished road
Default Missing Operator

Hi
I wrote the next code:
strDelete = "Delete tblUsers Where UserID=@UserID"
I got the next error:
Syntax error (missing operator) in query expression 'tblUsers Where UserID=@UserID'

tblUsers is the DataBase Table.
I tried many things without success.
Maybe someone know why is that?
Thank's.
Reply With Quote
 

Thread Tools
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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Operator overloading mskeel Random Thoughts 20 03-03-2006 06:47 PM
Crystal9-Missing data using CRV, not missing in Crystal dev env Susan A Database / XML / Reporting 1 08-27-2004 03:37 PM
Problem with And operator TechnoTone General 4 02-06-2004 09:34 AM
Like operator Cassio Visual Basic .NET 3 07-08-2003 07:16 AM
Syntax error: Missing operand after '@' operator. farid ASP.NET 1 05-24-2003 03:12 PM

Advertisement:

Powered by liquidweb