Thanks for uploading the text file Charles.
The file contains three SQL queries, which are revised versions of the three MapMate queries previously circulated for exporting to Recorder 2002. The "Find bad dates" query has not altered, but in the other two queries the differences are:
- Date field formatted so that it shows real date ranges for any period of time, e.g. a single day date will show as "dd/mm/yyyy", a date range will show as "dd/mm/yyyy - dd/mm/yyyy".
- Abundance, stage and sex fields are concatenated:
-- non-numeric abundance terms are translated - where DAFOR codes have been used they are shown instead of numeric quantities;
-- MapMate also has a "Not recorded" term, if this has been used it will show as "NotPresent";
-- "0", for "Present", is translated into "+";
-- In the Stage field, "1st Summer" etc. is translated into "FirstSummer" to avoid confusion with numeric abundance;
-- In the Sex field "mixed sex group" is converted to "MixedSexGroup" to remove spaces.
I did try stringing together a load of IIf statements to strip out all the spaces from the Stage field, but there are 40 stage terms that have spaces in them, and the query won't run with 40 nested IIf statements! So the best I can do is concatenate the three fields as described above - you'll still need to do an extra editing job outside MapMate to remove any extraneous spaces before import into R6.
The main data fields within MapMate that do NOT get exported in the queries are the fields relating to the "Reference" (equivalent to Recorder's "Survey"). The Reference fields could be added to the queries fairly easily, but not sure how that would get treated on import to Recorder. (And perhaps in Recorder it would be best to have a single Survey that refers to the original source of all the MapMate data?).
Any further suggestions for making this work smoothly will be gratefully received, and ideally I'd like to get the whole "MapMate to Recorder 6 data transfer" doc fully updated, so would be good to hear from anyone who is using this to import into R6.
Martin
Martin Harvey
Biological Records Centre
CEH Wallingford