Re: Multiple date formats in a Table

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: harvestman (anonymous_at_discussions.microsoft.com)
Date: 04/09/04

  • Next message: John Nurick: "Re: Multiple date formats in a Table"
    Date: Fri, 9 Apr 2004 10:53:17 -0700
    
    

    Andrew (and John):

    Thank you again both for your replies.

    Andrew: In regard to your most recent reply and the
    previous reply, I have not yet tried running your
    suggested code, because I am at home presently away from
    my Uni computer for a few days over Easter.

    I have a few more related queries re your coding and
    other bits to explain and question you about.

    Currently, I have my original set of dates as a text
    field in the following formats, exactly as shown:
    1: blank where no date details are known;
    2: yyyy;
    3: mmm-yyyy;
    4: dd-mmm-yyyy.

    All three part dates are as shown: e.g., 09-Apr-2004.

    In traditional biological recording, I originally had the
    month component recorded in Roman numerals, but this was
    obviously not recognised by Access, so I converted these
    as to mmm, being careful to avoid replacing "x" and "v"
    values until I had done the surrounding Roman numerals:
    i.e., xii to Dec, xi to Nov, ix to Sep, x to Oct, etc. to
    give my current "mmm" month component.

    John has suggested that I insert the word "null" into
    those field entries where the current value is unknown or
    blank, as in "1:" above. I'm not sure is there is an
    easy way to do this by coding, or whether I should just
    painstakingly go through my 6000 records and insert the
    word "null" in using ctrl V or ctrl " for multiple
    successive blank records.

    Regarding your coding for my mixed date formats: am I
    right in understanding that this will then convert
    this "Text" field to a "Date/Time" field?

    Some queries re your coding:

    (a) In the first lot, you have suggested that
    'Unrecognised format - treat all these cases as 1 Jan 1900

    (i) what do you mean by "'Unrecognised format"?? Would
    this include my blank spaces, where there are no values?

    (ii) at present, I have my day dates as "dd", so for your
    example above should I type it in as "01 Jan 1900"

    (iii) is there any particular reason for using this "01
    Jan 1900" date?

    (b) as in (a - iii" above, from your most recent lot
    of "TextToDate" code testing, I note you show the terst
    date as "1 Jan 1900". Should I use "01" instead of "1"?

    Incidentally... another little problem. I tried to
    recreate another identical text date field (new field,
    adjoining table column, different name), then did a copy
    of my Date records from another identical version of my
    db, but when I pasted it into the version I'm working
    with, the dates went askew relating to a slightly
    different ordering of my records!

    Enough for now,
    kind regards,
    harvestman

    >-----Original Message-----
    >Some comments on your points:
    >


  • Next message: John Nurick: "Re: Multiple date formats in a Table"

    Relevant Pages

    • Error message when coding Access query
      ... Andrew Smith has kindly given me some suggested coding ... for a module to form the basis of a query in Access. ... his reply post for the "TextToDate" coding under Access ...
      (microsoft.public.access.tablesdbdesign)
    • Re: Loop Macro
      ... received from both you and Helmut in this regard. ... Do While .Execute ... I have just sent you a response in appreciation for the coding that you ...
      (microsoft.public.word.docmanagement)
    • Re: [PATCH 2/5] cpuset memory spread page cache implementation and hooks
      ... Andrew wrote: ... But I'm still being a stupid git. ... Is the following variant of ... me on how to go about coding this, and I'll try coding it up. ...
      (Linux-Kernel)
    • Re: Conditional Formatting - Worked - Bad - Doesnt Work
      ... John W. Vinson wrote in ... but the coding for the CF is still there. ... It worked when I first did it then saved it, closed Access, ...
      (microsoft.public.access.formscoding)
    • Re: how to speed up some lisp code?
      ... John H Palmieri writes: ... > I think I made a mistake when coding this; I actually can't think of a ...
      (comp.lang.lisp)