Parameters in MS Access
- From: "George Kuascha" <gkhokie@xxxxxxxxxxx>
- Date: Wed, 15 Feb 2006 21:03:53 -0500
I'm getting an error message 'Jet database does not recognize [yID] as an
invalid field name or expression' for the following code. The parameter
value [yID] is invalid for some reason. I'm using MSAccess2000 with D6. What
is the problem?
ADODataSet.Parameters.ParamByName('[yID]').Value:= X_.FieldValues['ID'];
ADODataset.Active:= false;
ADODataset.CommandText:= 'TRANSFORM First(X.TIME) AS FirstOfTIME '+
'SELECT X.ID, X.NO, '+
'WHERE (X.ID) = [yID]'+
'GROUP BY X.ID, X.NO '+
'PIVOT X.NO ';
ADODataset.Open;
.
- Follow-Ups:
- Re: Parameters in MS Access
- From: muttley
- Re: Parameters in MS Access
- From: Brian Bushay TeamB
- Re: Parameters in MS Access
- Prev by Date: Re: MySQL via OLE DB
- Next by Date: Re: Quick way to find if a table exists
- Previous by thread: MySQL via OLE DB
- Next by thread: Re: Parameters in MS Access
- Index(es):
Relevant Pages
|