Comments inline...

Signature
Ken Snell
<MS ACCESS MVP>
> Thanks for responding Ken
>
> actually I did
> field week2 (is a) long integer
Correct, you did. My error -- it's been a long weekend already. < g >
> and you are correct, I am inserting a value in an existing table and field
> based on the playerid criteria, it's actually based on a web scraper db
[quoted text clipped - 3 lines]
> then inserting the sole field2 value for each of a series of playerid
> criteria
So you want to insert a new record with the value of the [week2] field and
the [playerid] field being inserted? OK, then your code step would be this:
str = "INSERT INTO 2007TourneyResults ([week2], [playerid) VALUES (" _
& strQuote3 & ", '" & strQuote & "');"
> hopefully that gives you enough... forgive my noobiness!
Only if you forgive my misreading of your original post < G >.
>>You don't tell us what data type the [week2] field is -- text? long
>>integer?
[quoted text clipped - 18 lines]
>>> INSERT INTO 2007TourneyResults([week2]) VALUES 630000 WHERE [playerid] =
>>> '00/65/67/'
pubdude2003 - 15 Jan 2007 01:18 GMT
thanks Ken, sorry if I didn't explain myself correctly but
the table and field exists already, and the current value of field week2 is 0
and I would like to update it to 630000 (a new value to overwrite 0) for
playerid 00/65/67/ (an existing value, I do not want to add to the table)
when I use your code I get error 6 overflow
>Comments inline...
>> Thanks for responding Ken
[quoted text clipped - 25 lines]
>>>> INSERT INTO 2007TourneyResults([week2]) VALUES 630000 WHERE [playerid] =
>>>> '00/65/67/'
pubdude2003 - 15 Jan 2007 01:52 GMT
as soon as I typed the work UPDATE it struck me where I went wrong
str = "UPDATE 2007TourneyResults SET week2 = " & strQuote3 & " WHERE
playerid = '" & strQuote & "'"
thanks Ken, the dialoguing helped!!
>thanks Ken, sorry if I didn't explain myself correctly but
>
[quoted text clipped - 8 lines]
>>>>> INSERT INTO 2007TourneyResults([week2]) VALUES 630000 WHERE [playerid] =
>>>>> '00/65/67/'
Ken Snell (MVP) - 15 Jan 2007 02:43 GMT
I was wondering if you were wanting to update and not insert. Glad you got
the solution.

Signature
Ken Snell
<MS ACCESS MVP>
> as soon as I typed the work UPDATE it struck me where I went wrong
>
> str = "UPDATE 2007TourneyResults SET week2 = " & strQuote3 & " WHERE
> playerid = '" & strQuote & "'"
>
> thanks Ken, the dialoguing helped!!
AccessVandal - 15 Jan 2007 01:53 GMT
Hi,
What Ken is saying is that your syntax was wrong.
This is the correct syntax for inserting one record.
insert into "tablename"
(first_column,...last_column)
values (first_value,...last_value);
If wish to use the “Where” condition, include the subquery like,
INSERT INTO target [(field1[, field2[, ...]])] [IN externaldatabase]
SELECT [source.]field1[, field2[, ...]
FROM tableexpression
WHERE [playerid] = '00/65/67/'
>pubdude2003 wrote:
>thanks Ken, sorry if I didn't explain myself correctly but
[quoted text clipped - 3 lines]
>playerid 00/65/67/ (an existing value, I do not want to add to the table)
>when I use your code I get error 6 overflow
pubdude2003 - 15 Jan 2007 02:22 GMT
Thanks AccessVandal, appreciate your post!
As happens so many times when posting to this invaluable resource, just the
dialogue seems to help. I was using the wrong statement from the get go. I
posted the solution just one minute before your post.... thanks for the input
everyone.
>Hi,
>
[quoted text clipped - 18 lines]
>>playerid 00/65/67/ (an existing value, I do not want to add to the table)
>>when I use your code I get error 6 overflow