Page Index Toggle Pages: 1 [2]  Send Topic Send Topic Print Print
Hot Topic (More than 10 Replies) Multiple Searches (Read 1932 times)
Louis Galvao
Full Member
***
Offline


"Sufferin' Succatash"

Posts: 265
Location: Canada
Joined: Feb 14th, 2005
Re: Multiple Searches
Reply #15 - Feb 9th, 2006 at 8:33pm
Print Post Print Post  
Ray:

It worked !  Explain to me why ?

It could not have been a space issue between Date Completed because I even copied this field name from designer into the program editor.

Thanks, everyone, for all your help.

Louis
  

Louis Galvao
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Multiple Searches
Reply #16 - Feb 9th, 2006 at 8:59pm
Print Post Print Post  
Hello Louis,

It was the space in between Date and Completed that was causing the problem but not in the way you are thinking. DATE is a reserved keyword. So the programmed retrieve compiler got to the word Date, said that is not a field name, and gave an error.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Louis Galvao
Full Member
***
Offline


"Sufferin' Succatash"

Posts: 265
Location: Canada
Joined: Feb 14th, 2005
Re: Multiple Searches
Reply #17 - Feb 9th, 2006 at 9:11pm
Print Post Print Post  
Ray:

I feel better now knowing that I wasn't completely out to lunch in my programming. 

I will have to keep that in mind for future applications.

Thanks again,

Louis
  

Louis Galvao
Back to top
 
IP Logged
 
Louis Galvao
Full Member
***
Offline


"Sufferin' Succatash"

Posts: 265
Location: Canada
Joined: Feb 14th, 2005
Re: Multiple Searches
Reply #18 - Mar 21st, 2006 at 5:05pm
Print Post Print Post  
Here we go again with another multiple search issue.

I am trying to retrieve only those records where the CHQ_DATE is less than the current month and the MTH PAID is empty.

I have programmed a field as follows:

{@Year(CHQ_DATE) = @YEAR(@Date) and @Month(CHQ_DATE) = @Month(@Date) AND @ISBLANK(MTH PAID)}

This works to bring up the current month's cheques where month paid is empty.

When I place the less than sign in the retrieve, it doesn't bring up any records and there are various ones that match the criteria.

Samples tried:

<{@Year(CHQ_DATE) = @YEAR(@Date) and @Month(CHQ_DATE) = @Month(@Date) AND @ISBLANK(MTH PAID)}

{<(@Year(CHQ_DATE) = @YEAR(@Date) and @Month(CHQ_DATE) = @Month(@Date) AND @ISBLANK(MTH PAID))}

Am I missing something or am I mis-using the < sign ?

Louis
  

Louis Galvao
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Multiple Searches
Reply #19 - Mar 21st, 2006 at 5:13pm
Print Post Print Post  
Hello Louis,

Try

{@Year(CHQ_DATE) = @YEAR(@Date) and @Month(CHQ_DATE) < @Month(@Date) AND @ISBLANK(MTH PAID)}

Current Year
Some Month Earlier than the Current One
MTH PAID is empty

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Louis Galvao
Full Member
***
Offline


"Sufferin' Succatash"

Posts: 265
Location: Canada
Joined: Feb 14th, 2005
Re: Multiple Searches
Reply #20 - Mar 21st, 2006 at 5:30pm
Print Post Print Post  
Ray:

Bingo !

I guess I had to compare the value first before asking it to retrieve the results.

Thanks for the quick response,

Louis
  

Louis Galvao
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send Topic Send Topic Print Print