Newbies mem Posted June 14, 2005 Newbies Share Posted June 14, 2005 I am transferring some data fields from one FM DB to another FM DB. but when the date field format of the source and receiving DB is (for example) 14/3/05 Ihave no problem setting the destination date field When the source date format is (say) 14 Mar 2005 the receiving end responds with a "invalid data supplied" error even if I set the layout date field formats to be identical. I am running FM3 and FM4 Is there any way I can coerce the date field data en route and change the format ? Link to comment Share on other sites More sharing options...
-Queue- Posted June 14, 2005 Share Posted June 14, 2005 When you export from the first file, make sure that 'format according to current layout' is not selected. 14 Mar 2005 is not a valid date in FileMaker. You want it to be exported and imported as 14/3/2005. Then it can be formatted as desired. Link to comment Share on other sites More sharing options...
Newbies mem Posted June 15, 2005 Author Newbies Share Posted June 15, 2005 I am using an Applescript to grab data from one DB and wring it to a second DB. my script basically does the following go to window "testout" set datecopy to field "date" go to window "testin" set field "date" to datecopy ----------- Error I need to force the date format in datecopy to be equivalent to the "leave data formatted as entered" option. Link to comment Share on other sites More sharing options...
Newbies mem Posted June 16, 2005 Author Newbies Share Posted June 16, 2005 I have found a solution to this problem myself. In the source DB I made a calculation field which is a copy of the original formatted date field but with result of the calculation as text rather than a date. I am now able to move this new date field into any destination DB date field regardless of the date format of the destination. Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6912 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