Re: SELECT query error



In this syntax ("SELECT Temp( TOTALTIME, DONE, Status )") Temp is parsed as
function that has 3 parameters and its result is treated as 1 field. Correct
SQL syntax is:

SELECT TOTALTIME, DONE, Status ...

or

SELECT Temp.TOTALTIME, Temp.DONE, Temp.Status ...

//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)

"George Kuascha" <gkhokie@xxxxxxxxxxx> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ
ÓÌÅÄÕÀÝÅÅ: news:4400c481@xxxxxxxxxxxxxxxxxxxxxxxxx
I get the following error 'number of query values and destination fields
not
the same' on the second line of the following code. I'm using D6 with
MSAccess 2000. What is the cause of this? I can replace with ... SELECT
Temp.TOTALTIME, Temp.DONE, Temp.Status .... and it works OK.

INSERT INTO Temp ( TOTALTIME, DONE, Status )
SELECT Temp( TOTALTIME, DONE, Status )
FROM Temp
WHERE ((Temp.DONE)= True);




.



Relevant Pages

  • SELECT query error
    ... I get the following error 'number of query values and destination fields not ... INSERT INTO Temp (TOTALTIME, DONE, Status) ...
    (borland.public.delphi.database.ado)
  • Re: RUNNING COUNT Function
    ... I assume there is a primary key somewhere in the table? ... It could turn to be much faster with the RANK syntax, ... WITH temp ... When designed, partial-years werent known about. ...
    (microsoft.public.access.queries)
  • Re: RUNNING COUNT Function
    ... I assume there is a primary key somewhere in the table? ... It could turn to be much faster with the RANK syntax, ... WITH temp ... When designed, partial-years werent known about. ...
    (microsoft.public.access.queries)
  • Re: RUNNING COUNT Function
    ... I assume there is a primary key somewhere in the table? ... It could turn to be much faster with the RANK syntax, ... WITH temp ... When designed, partial-years werent known about. ...
    (microsoft.public.access.queries)
  • Re: Accesing structures data (getting lengthy!)
    ... > promising. ... Object-oriented programming is ... temp = s; ... I kind of like the syntax without a return value because then we can use ...
    (comp.soft-sys.matlab)