Newbies steeleydon Posted December 30, 2004 Newbies Posted December 30, 2004 Newbie question. I am trying to use the case function to select data from one field if before a certain date, and another after the date. I have used the following, but it behaves as though its not interpreting the date correctly. When I try the same with If, a similar thing happens. I am using an old database in fp5 for this. case(visit date > 6/30/2004, related field 1, visit date <= 6/30/2004, related field 2) thanks for the help. dcs
RalphL Posted December 30, 2004 Posted December 30, 2004 Try using: case(visit date > Date(6,30,2004), related field 1, related field 2) Also make sure that visit date is a date field, and related field 1, related field 2 and the calculation field are the same data type.
Newbies steeleydon Posted December 30, 2004 Author Newbies Posted December 30, 2004 works perfect. much thanks, I searched all over for the answer x hrs, and tried multiple variations... really appreciate it. dcs
Recommended Posts
This topic is 7338 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now