Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Visual Dbase > dhodgk...@jstar...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 127 of 130
Post > Topic >>

dhodgk...@jstarsoftware.com

by asthanaankurster@[EMAIL PROTECTED] Jan 16, 2008 at 08:30 PM

Hello VB experts can you help with a problem with my syntax.
With the code below I'm trying to update a field called 'date' and
'time' in a table
'visitor' , I get the following

run-time error '-2147217900 (80040e14)':
Syntax error in update query
any help much appreciated

conn.Open sConnString
Set cmd.ActiveConnection = conn
cmd.CommandText = "update visitor set [date]="'" & Text1.Text & "'",
[time]="'"&Text2.Text&"'" WHERE id="'" & tx_kh.Text & "'""
cmd.CommandType = adCmdText
Set rs = cmd.Execute
Set rs = Nothing
Set cmd = Nothing
conn.Close
Set conn = Nothing

when i move the cursor to some other line(other than query expression)
a space is introduced between the first double quote and first single
quote making the rest query expression a comment.




 1 Posts in Topic:
dhodgk...@jstarsoftware.com
asthanaankurster@[EMAIL P  2008-01-16 20:30:16 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Fri Jul 4 15:51:49 CDT 2008.