Re: ADO Query problem



>I'm using Delphi 7.1 and ADOConnection to Access database (.mdb)
>(Provider=Microsoft.Jet.OLEDB.4.0)
>Connection is OK.
>
>I Create a table "Coach" (in Ms Access ) with one column name as
>Position(text datatype)
>
>Then I create an instance of TADOQuery with the following SQL:
>SELECT
> Coach.Position
>FROM
> Coach
>
>When I try to open this Query I get an EOLEException with message
>'Unspecified eroor'.
>
>In Access 2003 there is no problem to execute this query.
>There is no problem with ODBC too.

Do you have a lookup field defined for this dataset?
Lookupfields will trigger an error like this when you run out of the IDE.
This error will not occur outside the IDE or if you set the Lookupcache property
to true

--
Brian Bushay (TeamB)
Bbushay@xxxxxxxxx
.



Relevant Pages

  • Re: Lookup queries
    ... > ODBC table from a non access database. ... > It does the lookup fine but will not allow me to update the ... If the query is not updateable then you can't ...
    (microsoft.public.access.queries)
  • Re: error messages when connecting to an MS Access query
    ... I'm actually opening the Word document from VBA in the Access database, ... It's actually easy to run a Make Table query in Access, ... I got messages saying it couldn't make the connection. ... When you try to make a DDE connection, if the database is not already ...
    (microsoft.public.word.mailmerge.fields)
  • RE: ODBCDirect Workspace
    ... successfully ported my tables to SQL Server and have created an Access ... Are you using one Access database to work inside of another Access database? ... Set daoDbs = Nothing ... However if you are going to be using this query again to populate the combo ...
    (microsoft.public.access.modulesdaovba)
  • RE: ODBCDirect Workspace
    ... successfully ported my tables to SQL Server and have created an Access ... Are you using one Access database to work inside of another Access database? ... Dim strSql As String ... However if you are going to be using this query again to populate the combo ...
    (microsoft.public.access.modulesdaovba)
  • Re: Help with TableAdapter
    ... FROM ((((ReportedWeeds LEFT OUTER JOIN ... the sql into the Access database from the TableAdapter, ... Access database for any particular query? ...
    (microsoft.public.dotnet.languages.vb)