PC Review


Reply
Thread Tools Rate Thread

DataGrid + Access-DB - display date-values grouped by date and time?

 
 
Olaf Rabbachin
Guest
Posts: n/a
 
      18th May 2005
Hi folks,

I have a table in an Access-DB that has a date-field (date + time). I'd
like to use a DataSet + DataGrid to achieve a grouped/hierarchical display
where the user would work his/her way from years to months therein (rows
with items only) and finally the data-rows themselves.
My first idea is to setup a DataSet containing virtual tables, but I'm
wondering as to how I could split up the date from the database into date &
time (and whatever comes below that level) because VBA-functions such as
DatePart() and Format() won't be available, thus I'll only be able to query
the date-field as a whole. How would I get years and months separated and
into the DataSet?

Any hints on where to start?

TIA & cheers,
Olaf
 
Reply With Quote
 
 
 
 
Cor Ligthert
Guest
Posts: n/a
 
      19th May 2005
Olaf,

What you ask is in my opinion certainly not the best part of Net, however
have a look at this. And link than deeper to datetime.

http://msdn.microsoft.com/library/de...ormattopic.asp

I hope this helps,

Cor


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
click date/time field display calendar and validation of date /tim Smithskenpo Microsoft Outlook Form Programming 0 4th Mar 2010 08:20 PM
Bound Date/Time field to automatically display the current date Billiam Microsoft Access Database Table Design 2 20th Sep 2009 11:13 PM
How do I display time with date in a DataGrid from a DateTime data column? Jim H Microsoft C# .NET 3 23rd Oct 2004 09:52 AM
Re: MS Access Date/Time, remove Time part from DataGrid ? Microsoft ADO .NET 2 15th Jul 2003 07:23 PM
RE: MS Access Date/Time, remove Time part from DataGrid ? Brett Keown [MSFT] Microsoft ADO .NET 0 15th Jul 2003 07:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:12 PM.