Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 29th, 2003, 04:13 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 231
Thanks: 0
Thanked 0 Times in 0 Posts
Default Index Part of Field

I have a Date/Time field that I want to index, however I only want to index the Date part of the field and not the time part.

Is there any way of doing this (in VB DAO)?

Regards
Owain Williams
__________________
Regards
Owain Williams
 
Old September 29th, 2003, 09:01 AM
Registered User
 
Join Date: Sep 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think there's no point to that. date/time fields are usually stored in 32 bits, so date and time cannot be separated. If you need the index for faster access, then putting the index on the complete field should work fine.

Otherwise I'm not sure whether you need an index at all.
 
Old September 29th, 2003, 09:19 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 231
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for your help, I didn't think it was going to be possible.

Regards
Owain Williams
 
Old October 2nd, 2003, 09:03 AM
sal sal is offline
Friend of Wrox
 
Join Date: Oct 2003
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
Default

What are you trying to accomplish? There may be another way of getting a solution to your problem.


Sal
 
Old October 2nd, 2003, 09:34 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 231
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for you interest in my problem. I am afraid it would take too long to explain my problem, and as it happens I have devised another (better) solution to the issue.

Regards
Owain Williams





Similar Threads
Thread Thread Starter Forum Replies Last Post
Datetime Field as index daworm MySQL 2 September 17th, 2006 11:33 PM
Extract part of field from inconsistent data Roly Reefer Access VBA 4 March 31st, 2005 09:25 AM
Seperating Date part from a datetime field ctranjith SQL Server 2000 2 October 25th, 2004 06:42 AM
The difficult part k0023382 Access 1 October 8th, 2004 03:37 AM
Index Part of Field owain SQL Language 3 September 29th, 2003 09:37 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.