Syntax error for INSERT INTO WHERE statement
- From: "pubdude2003 via AccessMonster.com" <u10672@uwe>
- Date: Sun, 14 Jan 2007 22:57:44 GMT
Been a tough week for bugs. This code looks good but fails. Any insights
would be appreciated
Dim strQuote As String
Dim str As String
Dim strQuote3 As Long
str = "INSERT INTO 2007TourneyResults([week2]) VALUES " _
& strQuote3 & " WHERE [playerid] = '" & strQuote & "'"
Debug.Print str
CurrentDb.Execute str, dbFailOnError
table 2007TourneyResults
field week2 long integer
field playerid text
here's the string it's returning
INSERT INTO 2007TourneyResults([week2]) VALUES 630000 WHERE [playerid] =
'00/65/67/'
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-modules/200701/1
.
- Follow-Ups:
- Re: Syntax error for INSERT INTO WHERE statement
- From: Ken Snell \(MVP\)
- Re: Syntax error for INSERT INTO WHERE statement
- Prev by Date: Re: Activating IE and going to a specific page
- Next by Date: Re: Syntax error for INSERT INTO WHERE statement
- Previous by thread: Re: Activating IE and going to a specific page
- Next by thread: Re: Syntax error for INSERT INTO WHERE statement
- Index(es):
Relevant Pages
|