473,761 Members | 2,455 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Date format Database to Word changes

I created at a Word filke containing field and the data is from my
database (via ODBC).

One of the fields is Date. The format in the database is dd-mm-yyyy (I
checked it in VB code), but in the Word file it is yyyy-mm-dd.
The Regional Settings from Windows is set to dd-mm-yyyy.

How to have the fields in Word listed to this format as well? The same
field also add time as 00:00:00 while there is no Time issue at all.

So:

MDB file
15-10-2006

Word file
2006-10-15
00:00:00
Bart

Oct 17 '06 #1
3 1609
On 17 Oct 2006 05:41:23 -0700, "AA Arens" <ba***********@ gmail.com>
wrote:

Rather than merging against the table, you can merge against a query
that formats the data the way you want.
Date is a reserved word. I wouldn't use it for a field name.

-Tom.

>I created at a Word filke containing field and the data is from my
database (via ODBC).

One of the fields is Date. The format in the database is dd-mm-yyyy (I
checked it in VB code), but in the Word file it is yyyy-mm-dd.
The Regional Settings from Windows is set to dd-mm-yyyy.

How to have the fields in Word listed to this format as well? The same
field also add time as 00:00:00 while there is no Time issue at all.

So:

MDB file
15-10-2006

Word file
2006-10-15
00:00:00
Bart
Oct 17 '06 #2
Consider a connection table - Word, how to have the date format solved?
This should be not a headache issue. Thank you.
(BTW, the fieldname and column are called ModDate.)

On Oct 17, 8:55 pm, Tom van Stiphout <no.spam.tom7.. .@cox.netwrote:
On 17 Oct 2006 05:41:23 -0700, "AA Arens" <bartvandon...@ gmail.com>
wrote:

Rather than merging against the table, you can merge against a query
that formats the data the way you want.
Date is a reserved word. I wouldn't use it for a field name.

-Tom.
I created at a Word filke containing field and the data is from my
database (via ODBC).
One of the fields is Date. The format in the database is dd-mm-yyyy (I
checked it in VB code), but in the Word file it is yyyy-mm-dd.
The Regional Settings from Windows is set to dd-mm-yyyy.
How to have the fields in Word listed to this format as well? The same
field also add time as 00:00:00 while there is no Time issue at all.
So:
MDB file
15-10-2006
Word file
2006-10-15
00:00:00
Bart
Oct 18 '06 #3
On 18 Oct 2006 06:32:49 -0700, "AA Arens" <ba***********@ gmail.com>
wrote:

I'm not sure what you mean by a "connection table", but I would create
a query along these lines:
select FirstName, LastName, Format(ModDate, "dd-mm-yy") as FModDate
from SomeTable

-Tom.

>Consider a connection table - Word, how to have the date format solved?
This should be not a headache issue. Thank you.
(BTW, the fieldname and column are called ModDate.)

On Oct 17, 8:55 pm, Tom van Stiphout <no.spam.tom7.. .@cox.netwrote:
>On 17 Oct 2006 05:41:23 -0700, "AA Arens" <bartvandon...@ gmail.com>
wrote:

Rather than merging against the table, you can merge against a query
that formats the data the way you want.
Date is a reserved word. I wouldn't use it for a field name.

-Tom.
>I created at a Word filke containing field and the data is from my
database (via ODBC).
>One of the fields is Date. The format in the database is dd-mm-yyyy (I
checked it in VB code), but in the Word file it is yyyy-mm-dd.
The Regional Settings from Windows is set to dd-mm-yyyy.
>How to have the fields in Word listed to this format as well? The same
field also add time as 00:00:00 while there is no Time issue at all.
>So:
>MDB file
15-10-2006
>Word file
2006-10-15
00:00:00
>Bart
Oct 18 '06 #4

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

Similar topics

10
1896
by: Jack | last post by:
Hi, I cannot get the date format correctly in dynamic sql statement, after trying various ways of handling it. I need some help with the date format in the following dynamic sql statement. Any help is appreciated in advance. While running the asp page, I still get an error as Error Type: Microsoft VBScript runtime (0x800A000D) Type mismatch: 'Format' DYNAMIC SQL STATEMENT:
8
2251
by: Ishbel Kargar | last post by:
Since upgrading from old laptop (Windows 98) to new laptop (Windows XP), my mail-merge letters are doing strange things with date formats. For instance, my reminder letter for lapsed subs carries the 'expiry' date as a merge field from the database, and this previously was shown as dd/mm/yy (UK format). Now it persists in showing as mm/dd/yy. I've gone to the Windows Control Panel and made sure that my Regional settings show UK format,...
5
816
by: Macca | last post by:
Hi, I have a table which has a date/time field. I am storing them as follows :- 01/01/2005 11:25 01/01/2005 19:44 02/01/2005 05:04
7
2523
by: Andy Davis | last post by:
I have a table of data in Access 2002 which is used as the source table for a mail merge document using Word 2002 on my clients PC. The data is transferred OK but I've noticed that any dates which fall between 1stday/anymonth/any year and 12thday/anymonth/any year are rearranged in the wrong format. For example 4th July 2005 from the database would be displayed as 07/05/2005 in the merged document. In addition blank date fields from the...
9
3227
by: Bob Achgill | last post by:
I would like to use the timestamp on files to manage the currency of support files for my VB windows application. In this case I would only put the timestamp of the file in the management database and not the file itself. To do this I will need to have a File class property for Create time and date that will let me "set" the Create time and date of the file to my own chooseing. The VB file class does not appear to have the ability
1
2063
by: scott | last post by:
Hi Everyone, I don't know if this is the correct forum but I thought i'd ask. I have an access DB with a function to automatically safe a table with fields i'm mail merging into MS Word. Word looks at the table from the Access Database. The export function all works, but the Date format is incorrect. I want it in Long format (Tuesday, 2, May, 2006) which is how it's stored in the table. When I open Word with the merged document, the...
2
11515
by: syntego | last post by:
We commonly use triggers to log changes to our main tables to historical log tables. In the trigger, we create a concatenated string of the old values by casting them as follows: CAST(O.MYDATE AS CHAR(30)) When directly updating date fields in the main table, the logged value gets saved in the format YYYY-MM-DD as expected.
9
2940
by: Martin | last post by:
I'm retrieving some records from a database. One of the fields contains a date/time. I would like to format it as I send it out to the table in the displayed page. Can some one please tell me how I can/should do that? Or possibly point me to an on-line explanation? Thanks ps: if it makes any difference, the data is coming from a MS Access
10
4024
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 problem. This function does not recognize time zones. How to adjust date to user's time zone? Is converting to timestamp() and then to format readable to visitors the one and only solution (e.g. strtotime() + date() OR DateTime object)? Perhaps,...
0
9538
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10123
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...
1
9909
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,...
1
7342
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
5241
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5384
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3889
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
3
3481
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2765
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.