In article <uT4WcrtjFHA.476@TK2MSFTNGP14.phx.gbl>, Jim in Arizona says...
[quoted text, click to view] >
>I'm creating a vb.net web form that connects to an access database. I just
>need clarification on a SQL statement.
>
>Basically, I do a record update like so:
>
>UPDATE TClaimTrak
>SET resolved = True
>WHERE id = 40
>
>Now I need to not only do an update of a field, but also do update another
>field at the same time .. so, something like this:
>
>UPDATE TClaimTrak
>SET resolved = True
>SET notes = "this is a note that goes in this field"
>WHERE id = 40
>
>I don't think that would be the right way of doing it? IS there a right way
>that can be done in a single statement. I know this is a SQL server group
>and I'm working wtih access. I just figured that there would be some SQL
>gurus in here that could help.
>
>Since I'm using access, I can't, of course, do a stored proc.
>
>TIA,
>Jim
>
>
I don't have much experience with Access but have a little with MySQL and
PostgreSQL and probably very similar. From my understanding you would group
multiple "sets" using a comma similar to selecting fields from multiple tables.
As an example I'd try....
UPDATE TClaimTrak
SET resolved = True, notes = "this is a note that goes in this field"
WHERE id = 40
Rich
--
Newsguy.Com - 30 GB - $14.95 / month
Complete posts and long retention times
http://newsguy.com/overview.htm