I think you asked the same question on the other newsgroup.
In short,
you cannot "perform a database query" across the web service.
"Performing the query" implies you are directly connected to the database.
If you got the dataset from a webservice, then you probably cannot update
the database table directly, because the db is probably accessible only from
the webservice that delivered the dataset to you.
So, if you want to update the db, then you'll need to send the modified
dataset back to the webservice, and have the webservice "perform the query"
(the update).
On the second query (the insert), I answered that separately. Obviously
here you are using a local db connection to your MS Access database.
-Dino
[quoted text, click to view] "John" <john@nospam.infovis.co.uk> wrote in message
news:eWvqrSWXEHA.796@TK2MSFTNGP10.phx.gbl...
> Hi
>
> I need to perform two queries in sequence on two identical access tables.
> The source table is coming from a dataset returned by a web method and the
> destination table is from a local access table. The queries are;
>
> UPDATE [destTbl] INNER JOIN srcTbl ON [destTbl].entry_id = srcTbl.entry_id
> SET [destTbl].field1 = [srcTbl].[field1], [destTbl].field2 =
> [srcTbl].[field2];
>
> and
>
> INSERT INTO [destTbl] (field1, field2)
> SELECT srcTbl.field1, srcTbl.field2
> FROM srcTbl
> WHERE (((srcTbl.entry_id) Not In (SELECT srcTbl.entry_id FROM
[destTbl])));
>
> I have two problems. a) What code do I need to tell the query that srcTble
> is from the web method. b) There seem to be two connections; a web
> connection and a local connection. What connection should I use to execute
> the query?
>
> If I have totally misunderstood how to carry this out then please let me
> know.
>
> Thanks
>
> Regards
>
>
>
>