Hello,
I have a possible problem exporting a text field that happens to
contain dates (but is not a date field) when using TransferText in MS
Access 2000.
I am exporting a query to a text file using TransferText in a module.
One of my fields is a text field called "invoice description". This
field may include any content including dates (e.g., 01/01/2006,
1/1/2006, 01/01/06, Invoice #1, Jan 2006, 293842, etc. are all
possible values). These values come directly from an invoice.
When I export the data, on my own computer the text in this field
appears fine in the output file (exactly as entered in Access).
When my client exports the data, on her computer the text in this
field for the most part is OK, but for those records with what appear
to be dates as the value, she claims that her output file shows
certain date conversions (e.g. "01/01/06" becomes "01/01/2006", and
"11-2005" becomes "05-Nov"). This is problematic for her, as the
output should show the actual text that was entered.
My questions are:
1. Has anyone experienced this issue, or does it at least seem
plausible that it could occur on one computer and not another?
2. Is there any way to fix this problem? I have tried to think about
possible changes to formats in the table or query, or in the export
file specification, but I don't think these would fix the problem. I
suspect it may be a "client side" issue outside of MS Access?
Thanks for any help you can provide.
Dave 5 2101
On Sun, 23 Sep 2007 15:16:53 -0700, Dave <in**@songindex.orgwrote:
How is she viewing the output file?
For example if it were in Excel, that program would try to be helpful
and format values the way it was not intended. Let her view the file
in Notepad.
-Tom.
>Hello,
I have a possible problem exporting a text field that happens to contain dates (but is not a date field) when using TransferText in MS Access 2000.
I am exporting a query to a text file using TransferText in a module. One of my fields is a text field called "invoice description". This field may include any content including dates (e.g., 01/01/2006, 1/1/2006, 01/01/06, Invoice #1, Jan 2006, 293842, etc. are all possible values). These values come directly from an invoice.
When I export the data, on my own computer the text in this field appears fine in the output file (exactly as entered in Access).
When my client exports the data, on her computer the text in this field for the most part is OK, but for those records with what appear to be dates as the value, she claims that her output file shows certain date conversions (e.g. "01/01/06" becomes "01/01/2006", and "11-2005" becomes "05-Nov"). This is problematic for her, as the output should show the actual text that was entered.
My questions are:
1. Has anyone experienced this issue, or does it at least seem plausible that it could occur on one computer and not another?
2. Is there any way to fix this problem? I have tried to think about possible changes to formats in the table or query, or in the export file specification, but I don't think these would fix the problem. I suspect it may be a "client side" issue outside of MS Access?
Thanks for any help you can provide.
Dave
On Sep 23, 11:25 pm, Tom van Stiphout <no.spam.tom7...@cox.netwrote:
On Sun, 23 Sep 2007 15:16:53 -0700, Dave <i...@songindex.orgwrote:
How is she viewing the output file?
For example if it were in Excel, that program would try to be helpful
and format values the way it was not intended. Let her view the file
in Notepad.
-Tom.
Hello,
I have a possible problem exporting a text field that happens to
contain dates (but is not a date field) when using TransferText in MS
Access 2000.
I am exporting a query to a text file using TransferText in a module.
One of my fields is a text field called "invoice description". This
field may include any content including dates (e.g., 01/01/2006,
1/1/2006, 01/01/06, Invoice #1, Jan 2006, 293842, etc. are all
possible values). These values come directly from an invoice.
When I export the data, on my own computer the text in this field
appears fine in the output file (exactly as entered in Access).
When my client exports the data, on her computer the text in this
field for the most part is OK, but for those records with what appear
to be dates as the value, she claims that her output file shows
certain date conversions (e.g. "01/01/06" becomes "01/01/2006", and
"11-2005" becomes "05-Nov"). This is problematic for her, as the
output should show the actual text that was entered.
My questions are:
1. Has anyone experienced this issue, or does it at least seem
plausible that it could occur on one computer and not another?
2. Is there any way to fix this problem? I have tried to think about
possible changes to formats in the table or query, or in the export
file specification, but I don't think these would fix the problem. I
suspect it may be a "client side" issue outside of MS Access?
Thanks for any help you can provide.
Dave- Hide quoted text -
- Show quoted text -
She sent me her output of the file and when I open it in Notepad the
formatting is how she described (i.e., the dates are different from
when I create the output file).
It could be that she modified it in Excel first and re-saved it as a
text file, then maybe that is how things could have changed. I will
ask today.
Otherwise any other ideas are welcome....
Thanks
Dave
On Sep 23, 6:16 pm, Dave <i...@songindex.orgwrote:
Thanks for any help you can provide.
If I were doing this I would use a regular expression to translate
strings in the form of
99/99/9999 or 99/99/99 to dates that everyone could understand:
9999-99-99.
And if I weren't so busy right now I'd "right" one because it might be
useful to have in the old repertoire. Of course, such an animal may be
lurking on the net.
Indeed. Is this it?
'-------------------------------------------------------
Function IsoDate(dteDate)
'-------------------------------------------------------
'Version 1.0 by Giuliano Sauro
If IsDate(dteDate) = True Then
Dim dteDay, dteMonth, dteYear
dteDay = Day(dteDate)
dteMonth = Month(dteDate)
dteYear = Year(dteDate)
IsoDate = dteYear & _
"-" & right(CStr(dteMonth + 100), 2) & _
"-" & right(CStr(dteDay + 100), 2)
Else
IsoDate = Null
End If
End Function
On Mon, 24 Sep 2007 13:37:30 -0000, lyle <ly************@gmail.com>
wrote:
>Of course, such an animal may be lurking on the net.
On Sep 23, 11:25 pm, Tom van Stiphout <no.spam.tom7...@cox.netwrote:
On Sun, 23 Sep 2007 15:16:53 -0700, Dave <i...@songindex.orgwrote:
How is she viewing the output file?
For example if it were in Excel, that program would try to be helpful
and format values the way it was not intended. Let her view the file
in Notepad.
-Tom.
Hello,
I have a possible problem exporting a text field that happens to
contain dates (but is not a date field) when using TransferText in MS
Access 2000.
I am exporting a query to a text file using TransferText in a module.
One of my fields is a text field called "invoice description". This
field may include any content including dates (e.g., 01/01/2006,
1/1/2006, 01/01/06, Invoice #1, Jan 2006, 293842, etc. are all
possible values). These values come directly from an invoice.
When I export the data, on my own computer the text in this field
appears fine in the output file (exactly as entered in Access).
When my client exports the data, on her computer the text in this
field for the most part is OK, but for those records with what appear
to be dates as the value, she claims that her output file shows
certain date conversions (e.g. "01/01/06" becomes "01/01/2006", and
"11-2005" becomes "05-Nov"). This is problematic for her, as the
output should show the actual text that was entered.
My questions are:
1. Has anyone experienced this issue, or does it at least seem
plausible that it could occur on one computer and not another?
2. Is there any way to fix this problem? I have tried to think about
possible changes to formats in the table or query, or in the export
file specification, but I don't think these would fix the problem. I
suspect it may be a "client side" issue outside of MS Access?
Thanks for any help you can provide.
Dave- Hide quoted text -
- Show quoted text -
Hi Tom, so I think that you are probably right re: Excel. Thanks for
the suggestion.
Dave This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Fons Dijkstra |
last post by:
Hello,
I'm using the mx.ODBC.Windows package in order to read/write a MSAccess
database. Everything works fine apart from the DATE format handling. I'm
using the default "datetimeformat" (i.e....
|
by: Bill R via AccessMonster.com |
last post by:
I have a query:
SELECT tblCalendar.CalendarDay AS LastSunday
FROM tblCalendar
WHERE (((tblCalendar.CalendarDay)>=(Now()-7) And (tblCalendar.CalendarDay)...
|
by: George |
last post by:
Can someone tell me how to calculate the number of weeks between two dates.
Your help is appreciated.
Thanks, George
|
by: Jim Armstrong |
last post by:
Hi all -
This problem has been driving me crazy, and I'm hoping the answer is
something stupid I am neglecting to see....
The procedure posted below is part of an Access/SQL database I have...
|
by: Yotam |
last post by:
Hi,
I need some help with JS. I will be grateful, if you can help me out.
I have two date fields (check in, check out) and "number of days"
field.
I want the script to calculate automatically...
|
by: cheryl |
last post by:
I am using the PHP.MYSQL and Apache server application in developing my website. I have problem in comparing dates. Website has room reservation, the user will check first the room availability. The...
|
by: clintonb |
last post by:
I'm looking for a way to calculate the number of days between two
dates using standard C++ functions.
Would it be as simple as just using the difftime() function and then
dividing that result by...
|
by: Iyhamid |
last post by:
Hi Every:
Me Again.. still not finsh from same Project.. now I am in my last Problem.. I think anyway..
What I am trying to do is to get records between 2 dates in a combo box.. combo0 and...
|
by: |
last post by:
Hi,
I program in asp.net. I have a date in TextBox in format "dd/MM/yyyy".
I would like to validate if the date is realy correct.
I used RegularExpressionValidator with...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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,...
|
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,...
|
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...
|
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...
|
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...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |