Lounge of Tomorrow

€uromeinke, FEJ. and Ghoulish Delight RULE!!! NA abides.  


Go Back   Lounge of Tomorrow > A.S.C.O.T > Egg Head
Swank Swag
FAQ Members List Calendar Today's Posts Clear Unread

Reply
 
Thread Tools Search this Thread Display Modes
Old 01-24-2010, 05:43 PM   #1
Alex
.
 
Join Date: Feb 2005
Posts: 13,354
Alex is the epitome of coolAlex is the epitome of coolAlex is the epitome of coolAlex is the epitome of coolAlex is the epitome of coolAlex is the epitome of coolAlex is the epitome of coolAlex is the epitome of coolAlex is the epitome of coolAlex is the epitome of coolAlex is the epitome of cool
Anybody use Base?

Anybody here familiar with Base, the database component of Open Office?

I had a small task that I thought I'd try doing in a database rather than my standard practice of just bruting it in Excel. So I tried setting it up in Base since I have that and have never played with it.

For some reason, a date field I have automatically changes to 1/1/1800 any date I enter that is prior to that. So 6/5/1756 becomes 1/1/1800.

But only when doing data entry through a form. When I do it directly in a table it is saved correctly (though still appears as 1/1/1800 in the form view).

Anybody use and have thoughts? I can find zero help on this online so I'm sure it is something really stupid I'm doing.
Alex is offline   Submit to Quotes Reply With Quote
Old 01-24-2010, 09:19 PM   #2
JWBear
Worn Romantic
 
JWBear's Avatar
 
Join Date: Feb 2006
Location: Long Beach California
Posts: 8,435
JWBear is the epitome of coolJWBear is the epitome of coolJWBear is the epitome of coolJWBear is the epitome of coolJWBear is the epitome of coolJWBear is the epitome of coolJWBear is the epitome of coolJWBear is the epitome of coolJWBear is the epitome of coolJWBear is the epitome of coolJWBear is the epitome of cool
"All your Base belong to us."








(Well... Someone had to say it!)
__________________
Unrestrained frivolity will lead to the downfall of modern society.
JWBear is offline   Submit to Quotes Reply With Quote
Old 01-24-2010, 10:02 PM   #3
Ghoulish Delight
I Floop the Pig
 
Ghoulish Delight's Avatar
 
Join Date: Jan 2005
Location: Alternative Swankstyle
Posts: 19,348
Ghoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of cool
Send a message via AIM to Ghoulish Delight Send a message via Yahoo to Ghoulish Delight
I found one message board in French that made reference to Base and 1/1/1800. Based on the Google translation, I don't think it's the same issue, but it wasn't quite clear. The only suggestion I could make out from it that might was to change the date format to yyyy-mm-dd before going to form view. Again, I don't think it's the same thing as the OP was talking about an error message "value 0000-00-00 cannot be represented as java.sql.Date" and you don't seem to be seeing that error.

ETA: Hmm, further reading on that board seems to indicate that "1/1/1800" might mean it thinks it's looking at a value of "null" for a date. The 0000-00-00 and error message seem specific to converting from sql to base, but the "solution" seems to be to tell base to read "0000-00-00" (and otherwise invalid date value in base) as a NULL, which it then displays as 1/1/1800. No idea if any of that helps your situation though.

Here's the link I'm gleaning this from.
http://translate.google.com/translat...L_enUS347US348
__________________
'He who receives an idea from me, receives instruction himself without lessening mine; as he who lights his taper at mine, receives light without darkening me.'
-TJ

Ghoulish Delight is offline   Submit to Quotes Reply With Quote
Old 01-24-2010, 10:08 PM   #4
Ghoulish Delight
I Floop the Pig
 
Ghoulish Delight's Avatar
 
Join Date: Jan 2005
Location: Alternative Swankstyle
Posts: 19,348
Ghoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of cool
Send a message via AIM to Ghoulish Delight Send a message via Yahoo to Ghoulish Delight
Oh hey, you gave an example date of 1756. Was that just an example, or are the dates you're working with all before 1800? Because it seems that JDBC represents dates as offsets from 1/1/1800.
__________________
'He who receives an idea from me, receives instruction himself without lessening mine; as he who lights his taper at mine, receives light without darkening me.'
-TJ

Ghoulish Delight is offline   Submit to Quotes Reply With Quote
Old 01-24-2010, 10:21 PM   #5
Alex
.
 
Join Date: Feb 2005
Posts: 13,354
Alex is the epitome of coolAlex is the epitome of coolAlex is the epitome of coolAlex is the epitome of coolAlex is the epitome of coolAlex is the epitome of coolAlex is the epitome of coolAlex is the epitome of coolAlex is the epitome of coolAlex is the epitome of coolAlex is the epitome of cool
It is only dates from before 1/1/1800 that get converted.

But surely there must be some way to do a database of things older than that. And I can't find anything that even mentions these dates being changed.
Alex is offline   Submit to Quotes Reply With Quote
Old 01-24-2010, 10:38 PM   #6
Ghoulish Delight
I Floop the Pig
 
Ghoulish Delight's Avatar
 
Join Date: Jan 2005
Location: Alternative Swankstyle
Posts: 19,348
Ghoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of cool
Send a message via AIM to Ghoulish Delight Send a message via Yahoo to Ghoulish Delight
Aha. Set the field type to "date" in the table, instead of numeric with date formatting.

source
__________________
'He who receives an idea from me, receives instruction himself without lessening mine; as he who lights his taper at mine, receives light without darkening me.'
-TJ

Ghoulish Delight is offline   Submit to Quotes Reply With Quote
Old 01-24-2010, 10:40 PM   #7
Tref
Not Tref
 
Tref's Avatar
 
Join Date: Jan 2005
Posts: 2,188
Tref is the epitome of coolTref is the epitome of coolTref is the epitome of coolTref is the epitome of coolTref is the epitome of coolTref is the epitome of coolTref is the epitome of coolTref is the epitome of coolTref is the epitome of coolTref is the epitome of coolTref is the epitome of cool
Send a message via AIM to Tref Send a message via Yahoo to Tref
I'm more of a mineral face powder man myself.
__________________
Tref3.0


Listen in aural 3-D to Pop's muzak!
(New songs added semi-bi-daily)



j & j


Did you know that Emas eht yltcaxe is exactly the same spelled backwards?!
Tref is offline   Submit to Quotes Reply With Quote
Old 01-24-2010, 11:35 PM   #8
RStar
Senior Member
 
RStar's Avatar
 
Join Date: Jun 2006
Location: Me & Manyard hangin out!
Posts: 5,433
RStar is the epitome of coolRStar is the epitome of coolRStar is the epitome of coolRStar is the epitome of coolRStar is the epitome of coolRStar is the epitome of coolRStar is the epitome of coolRStar is the epitome of coolRStar is the epitome of coolRStar is the epitome of coolRStar is the epitome of cool
Oh. You don't mean free base.

Then no, I have not used it.
__________________
Meddle not in the affairs of Dragons, for you are crunchy and good with ketchup!
www.StarTownGifts.com
RStar is offline   Submit to Quotes Reply With Quote
Old 01-24-2010, 11:48 PM   #9
Alex
.
 
Join Date: Feb 2005
Posts: 13,354
Alex is the epitome of coolAlex is the epitome of coolAlex is the epitome of coolAlex is the epitome of coolAlex is the epitome of coolAlex is the epitome of coolAlex is the epitome of coolAlex is the epitome of coolAlex is the epitome of coolAlex is the epitome of coolAlex is the epitome of cool
Quote:
Originally Posted by Ghoulish Delight View Post
Aha. Set the field type to "date" in the table, instead of numeric with date formatting.

source
Thank you! That was completely not the problem!

But it did point me to a settings menu I had not found (Open Office help sucks) and I did find a setting in there that was causing the problem. Why the default for a date form field would not be to just accept any date I have no idea.

Thanks very much for looking into it. Your searching was better than mine.
Alex is offline   Submit to Quotes Reply With Quote
Old 01-25-2010, 12:00 AM   #10
Ghoulish Delight
I Floop the Pig
 
Ghoulish Delight's Avatar
 
Join Date: Jan 2005
Location: Alternative Swankstyle
Posts: 19,348
Ghoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of cool
Send a message via AIM to Ghoulish Delight Send a message via Yahoo to Ghoulish Delight
Quote:
Originally Posted by Alex View Post
Thank you! That was completely not the problem!
Always glad to help

Quote:
Thanks very much for looking into it. Your searching was better than mine.
"open office" form date 1800
__________________
'He who receives an idea from me, receives instruction himself without lessening mine; as he who lights his taper at mine, receives light without darkening me.'
-TJ

Ghoulish Delight is offline   Submit to Quotes Reply With Quote
Reply



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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -7. The time now is 01:04 PM.


Lunarpages.com Web Hosting

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.