Jan 10, 2002 #1 case81 Programmer Jan 10, 2002 23 IE hey all, im getting a syntax error for this query: sqlupdate = "UPDATE teams SET day='yes' WHERE tid=" & teamid rsTeams.open sqlstr,dbcon any ideas as to what could be causing this? im confused. Thanks
hey all, im getting a syntax error for this query: sqlupdate = "UPDATE teams SET day='yes' WHERE tid=" & teamid rsTeams.open sqlstr,dbcon any ideas as to what could be causing this? im confused. Thanks
Jan 10, 2002 #2 MikeCox Programmer Jun 4, 2001 340 US Did you try putting ur field names in brackets? Your field 'day' may be a reserved word somewhere... sqlupdate = "UPDATE teams SET [day]='yes' WHERE [tid]=" & teamid Also, I'm assuming 'tid' is a numeric field, not text cuz you left the quotes off. HTH! ~Mike Any man willing to sacrifice liberty for security deserves neither liberty nor security. -Ben Franklin Upvote 0 Downvote
Did you try putting ur field names in brackets? Your field 'day' may be a reserved word somewhere... sqlupdate = "UPDATE teams SET [day]='yes' WHERE [tid]=" & teamid Also, I'm assuming 'tid' is a numeric field, not text cuz you left the quotes off. HTH! ~Mike Any man willing to sacrifice liberty for security deserves neither liberty nor security. -Ben Franklin
Jan 10, 2002 Thread starter #3 case81 Programmer Jan 10, 2002 23 IE Thanks Mike, That didnt work but i've found a work around, thanks for replying though Upvote 0 Downvote