Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 29th, 2003, 04:13 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Cardiff, , United Kingdom.
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
Reply With Quote
  #2 (permalink)  
Old September 29th, 2003, 09:01 AM
Registered User
 
Join Date: Sep 2003
Location: , , .
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.
Reply With Quote
  #3 (permalink)  
Old September 29th, 2003, 09:19 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Cardiff, , United Kingdom.
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
Reply With Quote
  #4 (permalink)  
Old October 2nd, 2003, 09:03 AM
sal sal is offline
Friend of Wrox
 
Join Date: Oct 2003
Location: Clarksville, TN, USA.
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
Reply With Quote
  #5 (permalink)  
Old October 2nd, 2003, 09:34 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Cardiff, , United Kingdom.
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


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



All times are GMT -4. The time now is 02:20 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.