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 

Filter syntax?

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





PostPosted: Fri Nov 19, 2004 12:30 pm    Post subject: Filter syntax? Reply with quote



I have the following:
Datamodule2.Table_Lookup_Customer.Filter := 'Belongs_Number = ' +
QuotedStr(filternameno);

How do I add 'AND Company_Type = Client'


Cheers

SteveW


Back to top
Bill Todd
Guest





PostPosted: Fri Nov 19, 2004 1:38 pm    Post subject: Re: Filter syntax? Reply with quote



Datamodule2.Table_Lookup_Customer.Filter := '
Belongs_Number = ' +
QuotedStr(filternameno) + 'AND Company_Type = ' +
QuotedStr('Client');

assuming that "Client" is a literal, not a variable.

--
Bill (TeamB)
TeamB cannot answer questions received via email
Back to top
Steve Warburton
Guest





PostPosted: Fri Nov 19, 2004 4:33 pm    Post subject: Re: Filter syntax? Reply with quote



Done the job many thanks.


"Bill Todd" <no (AT) no (DOT) com> wrote

Quote:
Datamodule2.Table_Lookup_Customer.Filter := '
Belongs_Number = ' +
QuotedStr(filternameno) + 'AND Company_Type = ' +
QuotedStr('Client');

assuming that "Client" is a literal, not a variable.

--
Bill (TeamB)
TeamB cannot answer questions received via email



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Desktop) 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.