Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Problems with DATE data type


As I recall, it is pretty flexible, and I tend to use an unambiguous format,
such as

Format,Dia,"dd-mmm-yyyy")

Bob

"abcd" wrote in message
...
I think Dia is a serial number where the SQL code needs a text
formating (don't remember but may be something like #MM-DD-YYYY# needed
or similar)

so you will need a Format(Dia,"mm-dd-yyyy") to convert the date in
the regular syntax for SQL.

Tou should try to ask for a fixed date in a string, see if it works

then try to make a dynamic string by "...." & Format(...)
(use a msgbox to see if ok)

then add this dynamic string in the SQL request


this is the "pro-procedure" to be sure and keep time



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
plot schedule-type data in graph, date and times as x & y axes weblun Charts and Charting in Excel 1 May 6th 09 09:30 AM
Problems with DATE data type dmplacebo New Users to Excel 0 July 12th 05 08:40 AM
Convert data type of cells to Text,Number,Date and Time Kevin Excel Worksheet Functions 1 December 31st 04 12:57 PM
Convert data of cells to any type: Number, Date&Time, Text Kevin Excel Discussion (Misc queries) 0 December 30th 04 06:55 AM
COUNTIF() data type problems Kris Excel Programming 3 August 15th 03 02:20 PM


All times are GMT +1. The time now is 10:14 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"