| View previous topic :: View next topic |
| Author |
Message |
Atmapuri Guest
|
Posted: Tue Dec 30, 2003 9:30 am Post subject: Parameters for the ADO query! |
|
|
Hi!
I have defined the following query:
SELECT *
FROM Programs
WHERE ((LocationID=:LocationListingID) And (SectionID=:SectionListingID));
And two params have been added the Parameters list automatically
At run time I assign:
DataForm.ProgramsList.Parameters[0].Value :=
DataForm.LocationTable['ID'];
DataForm.ProgramsList.Parameters[1].Value :=
DataForm.SectionTable['ID'];
DataForm.ProgramsList.ExecSQL;
But the error returned is: No value given for one or more parameters,
Any ideas what could be missing?
Thanks!
Atmapuri.
|
|
| Back to top |
|
 |
Atmapuri Guest
|
Posted: Tue Dec 30, 2003 9:49 am Post subject: Re: Parameters for the ADO query! |
|
|
Hi!
Found the error. The Table Field names were not right. Is this neccessary
for the quary
to update?
DataForm.ProgramsList.Close;
DataForm.ProgramsList.Parameters[0].Value :=
DataForm.LocationTable['ID'];
DataForm.ProgramsList.Open;
Any performance problems anticipated?
Thanks!
Atmapuri.
|
|
| Back to top |
|
 |
|