BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Parameters for the ADO query!

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO)
View previous topic :: View next topic  
Author Message
Atmapuri
Guest





PostPosted: Tue Dec 30, 2003 9:30 am    Post subject: Parameters for the ADO query! Reply with quote



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





PostPosted: Tue Dec 30, 2003 9:49 am    Post subject: Re: Parameters for the ADO query! Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.