16732 Convert Number Field to Date in Table
Sign Up |  Live StatsLive Stats    Articles 37,317| Comments 177,135| Members 19,401, Newest surinder singh kanwar| Online 455
Home Contact
 (Forgotten?): 
    Sikhism
    For best SPN experience, use Firefox Internet Browser!


                                                                   Your Banner Here!    




Sikh Philosophy Network » Sikh Philosophy Network » Current News » Information Technology » Convert Number Field to Date in Table

Convert Number Field to Date in Table

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 500 USD, Received: 115 USD (23%)
Please Donate...
     
Related Topics...
Thread Thread Starter Forum Replies Last Post
Convert number Siew-Ming Information Technology 2 28-Jul-2006 08:38 AM
Current date in a table field msanewbee Information Technology 3 28-Jul-2006 08:25 AM
Date field in a table CiceroCF Information Technology 3 28-Jul-2006 08:18 AM
Convert Output of Query result field to a single field Ruth Information Technology 1 18-Nov-2005 14:00 PM
Number Field not showing zero's at the end of the number. naiveprogrammer Information Technology 3 12-Nov-2005 22:39 PM


Tags
convert, number, field, date, table
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 28-Jul-2006, 08:29 AM
Janna's Avatar Janna
Guest
 
Posts: n/a
   
   
Convert Number Field to Date in Table

  Donate Today!   Email to Friend  Tell a Friend   Show Printable Version  Print   Contact sikhphilosophy.net Administraion for any Suggestions, Ideas, Feedback.  Feedback  

Register to Remove Advertisements
Another Department created an Access Database. Rather than using a Date
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/12449-convert-number-field-to-date-table.html
field in their table to hold date information for records, they set the data
type of the field to number. They have over a 1000 records in the table
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12449
already and now want to run queries against the data based on dates--which
are stored as numbers. Is there an easy way to convert this number field to
a date field without losing data. I tried just changing the data type on a
copy of the table, but then the date information gets fouled up. Any help is
appreciated.

*







Got anything to share on This Topic? Why not share your immediate thoughts/reaction with us! Login Now! or Sign Up Today! to share your views... Gurfateh!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 28-Jul-2006, 08:29 AM
Steve Schapel's Avatar Steve Schapel
Guest
 
Posts: n/a
   
   
Re: Convert Number Field to Date in Table

Janna,

This will probably be possible, but can't advise specifically without
knowing the numbering system being used. Can you give some example of
the numbers that are in the table, and the dates they represent?

--
Steve Schapel, Microsoft Access MVP

Janna wrote:
> Another Department created an Access Database. Rather than using a Date
> field in their table to hold date information for records, they set the data
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12449
> type of the field to number. They have over a 1000 records in the table
> already and now want to run queries against the data based on dates--which
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12449
> are stored as numbers. Is there an easy way to convert this number field to
> a date field without losing data. I tried just changing the data type on a
> copy of the table, but then the date information gets fouled up. Any help is
> appreciated.

Reply With Quote
  #3 (permalink)  
Old 28-Jul-2006, 08:29 AM
Ofer Cohen's Avatar Ofer Cohen
Guest
 
Posts: n/a
   
   
RE: Convert Number Field to Date in Table

What do you mean by number?

Store
1/1/2006
As
112006

Or, something else?

--
Good Luck
BS"D


"Janna" wrote:

> Another Department created an Access Database. Rather than using a Date
> field in their table to hold date information for records, they set the data
> type of the field to number. They have over a 1000 records in the table
> already and now want to run queries against the data based on dates--which
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12449
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12449
> are stored as numbers. Is there an easy way to convert this number field to
> a date field without losing data. I tried just changing the data type on a
> copy of the table, but then the date information gets fouled up. Any help is
> appreciated.

Reply With Quote
  #4 (permalink)  
Old 28-Jul-2006, 08:29 AM
Janna's Avatar Janna
Guest
 
Posts: n/a
   
   
Re: Convert Number Field to Date in Table

Example: June 26, 2006 is currently being stored in a number data type field
as 62606

"Steve Schapel" wrote:

> Janna,
>
> This will probably be possible, but can't advise specifically without
> knowing the numbering system being used. Can you give some example of
> the numbers that are in the table, and the dates they represent?
>
> --
> Steve Schapel, Microsoft Access MVP
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12449
>
> Janna wrote:
> > Another Department created an Access Database. Rather than using a Date
> > field in their table to hold date information for records, they set the data
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12449
> > type of the field to number. They have over a 1000 records in the table
> > already and now want to run queries against the data based on dates--which
> > are stored as numbers. Is there an easy way to convert this number field to
> > a date field without losing data. I tried just changing the data type on a
> > copy of the table, but then the date information gets fouled up. Any help is
> > appreciated.

>

Reply With Quote
  #5 (permalink)  
Old 28-Jul-2006, 08:29 AM
John Vinson's Avatar John Vinson
Guest
 
Posts: n/a
   
   
Re: Convert Number Field to Date in Table

  Donate Today!  
On Sun, 2 Jul 2006 1401 -0700, Janna
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12449
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12449
wrote:

>Example: June 26, 2006 is currently being stored in a number data type field
>as 62606


Assuming that July 1 is stored as 70106 (rather than... eep... as
7106!) try

CDate(Format([numberdate], "#/00/00"))

John W. Vinson[MVP]
Reply With Quote
   Click Here to Donate Now!

Support Us!
Become a Promoter!
Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh!
ReplyPost New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!

Bookmarks


(View-All Members who have read this thread : 0
There are no names to display.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Tools Search
Search:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

» Active Discussions
30 Day Amrit Vel 'a'...
By Ishna
Today 08:18 AM
32 Replies, 295 Views
Losing My Religion: Why...
By Akasha
Today 07:19 AM
2 Replies, 62 Views
What I believe Hukam to...
Today 03:15 AM
13 Replies, 141 Views
Should SPN Keep the...
Today 02:02 AM
19 Replies, 542 Views
Rozana Reports (ਪੰਜਾਬੀ...
Today 01:46 AM
304 Replies, 7,484 Views
Thought of the Moment!
Today 01:46 AM
108 Replies, 5,098 Views
Sikh Spokesman (ਪੰਜਾਬੀ...
Today 01:18 AM
173 Replies, 4,386 Views
Student Compares Toilet...
Today 01:05 AM
1 Replies, 58 Views
What Do You Think of...
Today 00:53 AM
34 Replies, 615 Views
Amrit
Yesterday 23:38 PM
4 Replies, 345 Views
Map shows world's 'most...
Yesterday 18:58 PM
16 Replies, 281 Views
Do you believe in...
Yesterday 13:15 PM
180 Replies, 3,776 Views
BHOOTS (Ghosts) and...
Yesterday 13:08 PM
102 Replies, 13,891 Views
How does Sikhi help you...
Yesterday 12:44 PM
17 Replies, 688 Views
Why are There so Many...
Yesterday 10:23 AM
70 Replies, 5,063 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.3
All times are GMT +6.5. The time now is 09:00 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2 Copyright © 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 0.35771 seconds with 32 queries
0