Re: Querying an ADODataSet



George Kuascha wrote:

Using D6 with MSAccess2000 ... how do you write an
ADODataSet.CommandText to SELECT data FROM another ADODataSet?

you can't use SQL for that. The commandText property is there for
sentences that affect the underlying database, not other datasets.

I get an error message stating that ADO is looking for a table or
query. I suspect that ADO is looking for this table or query in the
Access database instead of from within the app.

well suspected <g>

If you want to put into a dataset X just part of the data contained in
another dataset Y there are 2 ways:

- save the data in dataset Y to the database and execute a select with
whatever parameters in the dataset X.

- move the data yourself. You can do this for example by filtering the
rows you want and move them one by one.


IMO the best option is the first
--
Best regards :)

Guillem Vicens Meier
Dep. Informatica Green Service S.A.
www.clubgreenoasis.com
--
Contribute to the Indy Docs project: http://docs.indyproject.org
--
In order to contact me remove the -nospam

.



Relevant Pages

  • Re: submitted data not updated promptly with ms access
    ... therefore, before writing to the database, i ... using sql injection ... Using an expensive recordset to run a query that does not retrieve ... is what I suspect you want to do, although I don't really know why you wish ...
    (microsoft.public.inetserver.asp.db)
  • Re: How to query a string in Hex or byte format
    ... > I suspect the string I query is different than what it was actually ... > between the database server and the code page used for the display on ... so how can I query a string such as a person's name ...
    (comp.databases.oracle.server)
  • Re: v$session_logops
    ... We suspect the ... database. ... When we query v$session_logops it shows one session. ...
    (comp.databases.oracle.server)
  • Re: chkrootkit error on install
    ... query that rpm name in the database for the installed file list, ... I suspect the thing isn't installed though. ...
    (comp.security.unix)
  • Re: chkrootkit error on install
    ... query that rpm name in the database for the installed file list, ... I suspect the thing isn't installed though. ...
    (comp.os.linux.security)