473,765 Members | 1,977 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Fixing bad data- dates

I inherited a table. One field in this table is Date_Observed, and users
entered data directly into this (I'm not sure there was an input mask; if
there was, it was ignored). It is formatted as a Date/Time field. In it, I
have such gems as "2/1/530" and "1/1/999". I have ruled out the possibility
that my users are time-travellers, but I still have to figure out when these
things were observed. Is there a formula out there that'll help me out?

Thanks,
Bonnie

--
Message posted via AccessMonster.c om
http://www.accessmonster.com/Uwe/For...ccess/200809/1

Sep 2 '08 #1
6 1681
"BonnieW via AccessMonster.c om" <u33846@uwewrot e in
news:899c030bea 68b@uwe:
I inherited a table. One field in this table is Date_Observed,
and users entered data directly into this (I'm not sure there was
an input mask; if there was, it was ignored). It is formatted as
a Date/Time field. In it, I have such gems as "2/1/530" and
"1/1/999". I have ruled out the possibility that my users are
time-travellers, but I still have to figure out when these things
were observed. Is there a formula out there that'll help me out?

Thanks,
Bonnie
is there some other field that will help put the dates into a
sequence? an autonumber perhaps.
e.g.

ID
12344 1/31/2004
12345 2/1/530 <- the date is between the other two
12346 2/2/2004
--
Bob Quintal

PA is y I've altered my email address.
** Posted from http://www.teranews.com **
Sep 2 '08 #2
BonnieW via AccessMonster.c om wrote:
I inherited a table. One field in this table is Date_Observed, and users
entered data directly into this (I'm not sure there was an input mask; if
there was, it was ignored). It is formatted as a Date/Time field. In it, I
have such gems as "2/1/530" and "1/1/999". I have ruled out the possibility
that my users are time-travellers, but I still have to figure out when these
things were observed. Is there a formula out there that'll help me out?

Thanks,
Bonnie
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I usually ignore bad data & tell the data input ops to re-input (they
love it!).

You can go on the assumption that "2/1/530" is probably "2/15/30" if
your dates go to 1930. That's the most common mistake - splitting the
number into 2 different data positions (month and year, in this case).
You'll just have to reformat the date into what you think is correct &
check if that is a date:

IsDate("2/15/30") -yields True

IsDate("2/1/530") -yields True also since it is Feb 1, 530 C.E.

So, you'll have to use string parsing techniques (Len, Mid, Right, Left)
to determine if the m/d/yy positions have the correct number of numbers
& in the correct range.

The old adage is the best standard - Garbage In, Garbage Out.

--
MGFoster:::mgf0 0 <atearthlink <decimal-pointnet
Oakland, CA (USA)
** Respond only to this newsgroup. I DO NOT respond to emails **

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBSL28mYechKq OuFEgEQJcrgCg13 H/M3gWkRkvOkOa3Ge 15InYkWIAoLei
ddl6qzdn6Mcc+f3 kKdnAnyaa
=ag4M
-----END PGP SIGNATURE-----
Sep 2 '08 #3
There is an autonumber, as well as a date-entered, and an entered-by-whom.
So I know that the data is *before* a certain date, sure. However, the date-
entereds are from the "early years" of the database, when people may have
been entering archival data (there's perfectly valid stuff from, say, the
1950s, and in one case, the late 1800s). This table had been used for a
bunch of things (bad db design), so the autonumber "session" may be bracketed
by completely different data (herps vs plants, for instance). And, to top it
off, this is data from at least 5 years ago, and the people who had entered
it are long gone. :( We *might* still have the original data forms- but
since I'd be the one stuck finding them and interpreting them and entering
them, I'm not super-keen on that method if there's an acceptable alternate.

Bob Quintal wrote:
>I inherited a table. One field in this table is Date_Observed,
and users entered data directly into this (I'm not sure there was
[quoted text clipped - 6 lines]
>Thanks,
Bonnie

is there some other field that will help put the dates into a
sequence? an autonumber perhaps.
e.g.

ID
12344 1/31/2004
12345 2/1/530 <- the date is between the other two
12346 2/2/2004
--
Message posted via http://www.accessmonster.com

Sep 3 '08 #4
"BonnieW via AccessMonster.c om" <u33846@uwewrot e in
news:89a57df7fb 794@uwe:
There is an autonumber, as well as a date-entered, and an
entered-by-whom. So I know that the data is *before* a certain
date, sure. However, the date- entereds are from the "early
years" of the database, when people may have been entering
archival data (there's perfectly valid stuff from, say, the 1950s,
and in one case, the late 1800s). This table had been used for a
bunch of things (bad db design), so the autonumber "session" may
be bracketed by completely different data (herps vs plants, for
instance). And, to top it off, this is data from at least 5 years
ago, and the people who had entered it are long gone. :( We
*might* still have the original data forms- but since I'd be the
one stuck finding them and interpreting them and entering them,
I'm not super-keen on that method if there's an acceptable
alternate.
unfortunately, there's no date stamp for when the record was created
that's hidden in Access. You might still get close, however if your
herps and plants are a keywrd in a common field that you could
filter on.

Other than that. all I can say is good luck.
Bob Quintal wrote:
>>I inherited a table. One field in this table is Date_Observed,
and users entered data directly into this (I'm not sure there
was
[quoted text clipped - 6 lines]
>>Thanks,
Bonnie

is there some other field that will help put the dates into a
sequence? an autonumber perhaps.
e.g.

ID
12344 1/31/2004
12345 2/1/530 <- the date is between the other two
12346 2/2/2004


--
Bob Quintal

PA is y I've altered my email address.
** Posted from http://www.teranews.com **
Sep 3 '08 #5
I figured it out. :) There was some other data in the table that helped me
narrow down the range, and for this data the most important thing was more or
less the week- not a precise day- so I did a best-guess and am having the
appropriate biologists give it a once-over to see if my ballparking worked.
Thanks!

Bob Quintal wrote:
>There is an autonumber, as well as a date-entered, and an
entered-by-whom. So I know that the data is *before* a certain
[quoted text clipped - 10 lines]
>I'm not super-keen on that method if there's an acceptable
alternate.

unfortunatel y, there's no date stamp for when the record was created
that's hidden in Access. You might still get close, however if your
herps and plants are a keywrd in a common field that you could
filter on.

Other than that. all I can say is good luck.
>>>I inherited a table. One field in this table is Date_Observed,
and users entered data directly into this (I'm not sure there
[quoted text clipped - 11 lines]
>>>12345 2/1/530 <- the date is between the other two
12346 2/2/2004
--
Message posted via http://www.accessmonster.com

Sep 4 '08 #6
"BonnieW via AccessMonster.c om" <u33846@uwewrot e in
news:89aacd32a0 fa3@uwe:
I figured it out. :) There was some other data in the table that
helped me narrow down the range, and for this data the most
important thing was more or less the week- not a precise day- so I
did a best-guess and am having the appropriate biologists give it
a once-over to see if my ballparking worked. Thanks!
I'm happy to see you smile. Sometimes an approximation is a lot
better than totally corrupt data.
Bob Quintal wrote:
>>There is an autonumber, as well as a date-entered, and an
entered-by-whom. So I know that the data is *before* a certain
[quoted text clipped - 10 lines]
>>I'm not super-keen on that method if there's an acceptable
alternate.

unfortunately , there's no date stamp for when the record was
created that's hidden in Access. You might still get close,
however if your herps and plants are a keywrd in a common field
that you could filter on.

Other than that. all I can say is good luck.
>>>>I inherited a table. One field in this table is
Date_Observ ed, and users entered data directly into this (I'm
not sure there
[quoted text clipped - 11 lines]
>>>>12345 2/1/530 <- the date is between the other two
12346 2/2/2004


--
Bob Quintal

PA is y I've altered my email address.
** Posted from http://www.teranews.com **
Sep 4 '08 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
11769
by: Bryan Olson | last post by:
Here's the problem: Suppose we use: import socket f = some_socket.makefile() Then: f.read() is efficient, but verbose, and incorrect (or at least does not play will with others);
6
2030
by: Leo J. Hart IV | last post by:
Hello, I have a table: <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1"> <tr> <td width="10%">&nbsp;</td> <td width="10%" bgcolor="#C0C0C0">xa</td>
7
1633
by: vadi | last post by:
I need to design a class for fixing different kind of errors. The errrors fall into number of categories. For each category the methodology of fixing the error is different. I do not want to use a switch...case statement for handling different category of errors. Can any one suggest me the method?
5
1922
by: Alicia | last post by:
Hello everyone based on the data, I created a union query which produces this. SELECT ,,, 0 As ClosedCount FROM UNION SELECT ,, 0 AS OpenedCount, FROM ORDER BY , ;
6
1958
by: Phillip N Rounds | last post by:
I have an application which is heavily graphics intensive, all the graphics being custom. Scattered throughout by app, I have MyView->OnDraw( this->GetDC() ); Apparently, each call to this->GetDC() creates a GDI object and, 16,000 or so calls to OnDraw() results in the Application hanging because it can no longer create any new GDI objects ( I know, 16,384 )
5
1296
by: Randy Harris | last post by:
I've seen several very nice routines on various web sites to fix table links when a file is moved. So far all the ones I've found have used DAO. Anyone know of a sample of such a routine that uses ADO? Thanks, Randy
12
348
by: > Adrian | last post by:
How do I fix a form on the screen using VS C# 2005. By "fixing" I mean that the user cannot move the form about on the display. Thanks, Adrian.
0
1451
by: rossabri | last post by:
This topic has been addressed in limited detail in other threads: "sockets don't play nice with new style classes :(" May 14 2005. http://groups.google.com/group/comp.lang.python/browse_thread/thread/76d27388b0d286fa/c9849013e37c995b "Subclassing socket" Dec 20 2005 - Jan 14 2006. http://groups.google.com/group/comp.lang.python/browse_thread/thread/391728cd442339c8/c0581b9ee5e7ceaf Briefly, the socket module ("socket.py") provides a...
0
7411
pbmods
by: pbmods | last post by:
FIXING NETINFO ERRORS ON THE COMMAND LINE LEVEL: ADVANCED PREREQS: TERMINAL / COMMAND LINE, USERS AND GROUPS Intro Today, while performing routine maintenance, I noticed that I was no longer able to use sudo. And attempting to authenticate wasn't working; my computer kept complaining that I wasn't providing a valid administrator's Username. "That's odd," I thought, since I'd always had an administrator account.
0
9399
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10163
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10007
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9957
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9835
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7379
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5423
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3924
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.