Slats Highlander Posted July 18, 2005 Posted July 18, 2005 Hi all Seems like this is a simple problem but I'm not sure how to solve it. I have a file which was at one time a FM5 file its dates were formatted 2004 01 01. Now the file has been updated to FM7 where dates are formatted 2004/01/01. The problem is when I search for records in a particular range e.g. <2004/01/01 only the records that match this format will come up in searches. Is there a way to update all of these old records to a format that will be recognizable by FM7?
Vaughan Posted July 19, 2005 Posted July 19, 2005 Dates are stored internally as the number of days since 1 January 0001. How dates are required to be entered depends on the languare setting in your OS. How they are *displayed* depends on the field formatting on each layout. If you are having problems with date entry format, make sure your computer's languare setting is coredct, the use the Save a Copy As command to save a copy of the file. This new file shuld have the date formats of the computer it was saved on.
Slats Highlander Posted July 19, 2005 Author Posted July 19, 2005 Thanks for the post. As far as OS I am a windows XP pro user. I'm not sure you understand the problem I am having. I tried to save a copy but the dates were exactly the same in that version. Let me describe the problem differently: I have a date feild that has the birthdates of clients. The old records I have the dates were entered with spaces like: 2004 01 01. There are about 1400 records with dates like this. When I upgraded to FM7 dates are entered like this: 2004/01/01 with back slashes. When I search for records by dates only the records with backslashes are recognized. What I am looking for is a way to change all the old records so that their date fields are the same format as the new ones. Make sense?
RalphL Posted July 19, 2005 Posted July 19, 2005 Work with a copy of the database. On the date field use a replace by calculation subsitituting "/" for " ".
Vaughan Posted July 19, 2005 Posted July 19, 2005 In the Define Fields dialog, is the birthdate field specified as "date" or "text". It sounds to me as though it is a text field, which is no good. Ralph's advice is good: make backup copies of the database and work of those.
Slats Highlander Posted July 20, 2005 Author Posted July 20, 2005 Thanks Ralph. That worked very well. FM ran through all the files and fixed all the dates. I tried it on a copy (great advice) and it chugged away. Then it worked in my real database. If others are trying this they should be sure to have the right field selected and to select the one field option or all the spaces in all your fields will be replaced. Thanks also to Vaughan for your advice.
Recommended Posts
This topic is 7064 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