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 

Adding filter in a query on C++ and MS-ACcess

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE)
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Mon May 14, 2007 7:28 pm    Post subject: Adding filter in a query on C++ and MS-ACcess Reply with quote



qryMillcGetByTypeApp_AppQuery its a stored query in MS-ACCESS

defination:
PARAMETERS prmMillToolType Long;
SELECT MILLC.ID, MILLC.InsMillBdyID AS [Tool ID], MILLC.SubType,
MILLC.Radius AS [End Radius], MILLC.CuttingDia AS [Tool Dia],
MILLC.EffAxlCutLen AS [Effec Cut Length], MILLC.OverallLen AS [Overall
Length], MILLC.HandOfCut AS [Hand Of Cut], MILLC.NoOfFlutes AS [No Of
Flutes], MILLC.TmcID AS [Tool Class], MILLC.Comment, MILLC.Protrusion,
MILLC.ShankDia, millC.ShoulderLen AS [Shoulder Length]
FROM MILLC
WHERE (((MILLC.[Mill Tool Type])=[prmMillToolType]) AND ((MILLC.
[ON])=True))
ORDER BY MILLC.ID;


I need to give filter on stored query.
filter in the form of string.
eg...

WHERE ID > -1 AND [Tool Dia] >= 0.000000 AND [Tool Dia] <= 5.000000"




but when i execute this stroed query filter wont work.
In c++
piCommand->Execute(NULL, NULL,adCmdStoredProc,&piRecordSet)


query is running fine but it is giving same answers what i wrote the
defination of
of that query.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE) 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.