The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

RE: [OT] SQL Query



Msgbox(Left(youfieldname,8))

Or

dim x as string
Dim y as string

Y = "20040804125000"

X = left(y,8)


There you go.

Steve


-----Original Message-----
From: Stuart [mailto:lists@xxxxxxx]
Sent: 06 August 2004 07:48
To: ukha_d@xxxxxxx
Subject: [ukha_d] [OT] SQL Query

Hello SQL Gurus ;-)


I have a field in an access database that is (like) 20040804125000.

Clearly this is year/month/day/hour/minute/second.

What can I put to only get the first 8 characters (ie date only)

Thx in advance

Stuart


[Non-text portions of this message have been removed]




UKHA_D Main Index | UKHA_D Thread Index | UKHA_D Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.