473,385 Members | 1,379 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Date format - this has to be simple...

Access 97 - I want the date format YYYY-M M-DD to show everywhere.

My problem is that I deal with French and English versions. And don't
want to play with Windows Regional Settings.

In the format property of a control, it is easy to enter YYYY-MM-DD

But it won't work in French versions. In them, AAAA-MM-JJ will.

Using format(MyDate,"yyyy-mm-dd") in the controlsource doesn't sem to
help either.

Any solution?

Oct 9 '06 #1
4 2712

<sa******@hotmail.comschreef in bericht news:11*********************@h48g2000cwc.googlegro ups.com...
Access 97 - I want the date format YYYY-M M-DD to show everywhere.

My problem is that I deal with French and English versions. And don't
want to play with Windows Regional Settings.

In the format property of a control, it is easy to enter YYYY-MM-DD

But it won't work in French versions. In them, AAAA-MM-JJ will.

Using format(MyDate,"yyyy-mm-dd") in the controlsource doesn't sem to
help either.

Any solution?
Set the format property runtime.

Private Sub Form_Open(Cancel As Integer)
Me!DateControl1.Format="yyyy-mm-dd"
Me!DateControl2.Format="yyyy-mm-dd"
Me!DateControl3.Format="yyyy-mm-dd"
End sub

Arno R
Oct 9 '06 #2

Arno R wrote:
<sa******@hotmail.comschreef in bericht news:11*********************@h48g2000cwc.googlegro ups.com...
Access 97 - I want the date format YYYY-M M-DD to show everywhere.

My problem is that I deal with French and English versions. And don't
want to play with Windows Regional Settings.

In the format property of a control, it is easy to enter YYYY-MM-DD

But it won't work in French versions. In them, AAAA-MM-JJ will.

Using format(MyDate,"yyyy-mm-dd") in the controlsource doesn't sem to
help either.

Any solution?

Set the format property runtime.

Private Sub Form_Open(Cancel As Integer)
Me!DateControl1.Format="yyyy-mm-dd"
Me!DateControl2.Format="yyyy-mm-dd"
Me!DateControl3.Format="yyyy-mm-dd"
End sub

Arno R

Some stations are running a Runtime version (no full Access installed)
.. Does it change anything?

I remember an issue in the past that I could programmatically not have
Runtime version open forms in design mode. Is the format property as
the design level?

Oct 9 '06 #3

<sa******@hotmail.comschreef in bericht news:11*********************@m7g2000cwm.googlegrou ps.com...

Arno R wrote:
><sa******@hotmail.comschreef in bericht news:11*********************@h48g2000cwc.googlegro ups.com...
Access 97 - I want the date format YYYY-M M-DD to show everywhere.

My problem is that I deal with French and English versions. And don't
want to play with Windows Regional Settings.

In the format property of a control, it is easy to enter YYYY-MM-DD

But it won't work in French versions. In them, AAAA-MM-JJ will.

Using format(MyDate,"yyyy-mm-dd") in the controlsource doesn't sem to
help either.

Any solution?

Set the format property runtime.

Private Sub Form_Open(Cancel As Integer)
Me!DateControl1.Format="yyyy-mm-dd"
Me!DateControl2.Format="yyyy-mm-dd"
Me!DateControl3.Format="yyyy-mm-dd"
End sub

Arno R

Some stations are running a Runtime version (no full Access installed)
. Does it change anything?

I remember an issue in the past that I could programmatically not have
Runtime version open forms in design mode. Is the format property as
the design level?
No need to open design mode for this.
You can change lots of property's at runtime, also with runtime versions.
This is just plain normal programming, like assigning a filter or recordset or whatever.
It will work.
However you can *not* save the design changes with a runtime version
(but you won't need to, I guess you would not even want 'them' to...)

Arno R
Oct 9 '06 #4
It worked.

But it was incredibly unproductive having to edit 100s of forms and
reports just for this.

I hope the customer will pay the 5-6 hours it took....
Arno R wrote:
<sa******@hotmail.comschreef in bericht news:11*********************@m7g2000cwm.googlegrou ps.com...

Arno R wrote:
<sa******@hotmail.comschreef in bericht news:11*********************@h48g2000cwc.googlegro ups.com...
Access 97 - I want the date format YYYY-M M-DD to show everywhere.

My problem is that I deal with French and English versions. And don't
want to play with Windows Regional Settings.

In the format property of a control, it is easy to enter YYYY-MM-DD

But it won't work in French versions. In them, AAAA-MM-JJ will.

Using format(MyDate,"yyyy-mm-dd") in the controlsource doesn't sem to
help either.

Any solution?

Set the format property runtime.

Private Sub Form_Open(Cancel As Integer)
Me!DateControl1.Format="yyyy-mm-dd"
Me!DateControl2.Format="yyyy-mm-dd"
Me!DateControl3.Format="yyyy-mm-dd"
End sub

Arno R

Some stations are running a Runtime version (no full Access installed)
. Does it change anything?

I remember an issue in the past that I could programmatically not have
Runtime version open forms in design mode. Is the format property as
the design level?

No need to open design mode for this.
You can change lots of property's at runtime, also with runtime versions.
This is just plain normal programming, like assigning a filter or recordset or whatever.
It will work.
However you can *not* save the design changes with a runtime version
(but you won't need to, I guess you would not even want 'them' to...)

Arno R
Oct 14 '06 #5

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

Similar topics

8
by: Gerrit Holl | last post by:
Posted with permission from the author. I have some comments on this PEP, see the (coming) followup to this message. PEP: 321 Title: Date/Time Parsing and Formatting Version: $Revision: 1.3 $...
1
by: Peter Nolan | last post by:
Hi All, I promise I did my homework and looked around, but I can't find a simple date/datetime converter in C or C++. I think there might be one in YACL and things like that but it's pretty huge...
2
by: Rob | last post by:
Hello, I get an date field as a part of download in the format 01 Mar 04 12:00:00. I want this to be converted as a short date.How do i proceed? Also not connected with the above but in the same...
1
by: Alex | last post by:
I am trying to do what I thought was a very simple thing. I have created a form with a few unbound text fields. I want to pull these values into a query where some calculations will be done to...
2
by: Brian Candy | last post by:
I am guessing that this must be a common question, but I just can't find a simple solution for it by searching the newsgroups. I have a Text Box with a date in a UK format. The format has been...
5
by: Tim Marsden | last post by:
Hello, I am building a parameterised query in vb.net for execution against a SQL server database. I am using a OLEDB command and OLEDB parameters. If one of the parameters is a date I sometimes...
15
by: Khurram | last post by:
I have a problem while inserting time value in the datetime Field. I want to Insert only time value in this format (08:15:39) into the SQL Date time Field. I tried to many ways, I can extract...
2
by: johndcal | last post by:
Hello All, I have a date value that I pull from a .csv file. After reading the file and storing the values in an array the value of the date could be found in $array, for example....
5
by: Anja | last post by:
Hi everyone, I want to write a simple SQL statement that does a comparison on a date field. For a simple test, I have the following SQL Statement: SELECT * FROM Records_T where...
10
by: WebCM | last post by:
There is a function: http://paste.ubuntu.com/21865 It needs GMT date in YYYY-MM-DD HH:MM:SS format - in SQL: datetime. If date is the same as today, the function returns "Today". There is one...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.