PC Review


Reply
Thread Tools Rate Thread

Date Format dataagrid to Access

 
 
=?Utf-8?B?T2dldHR5?=
Guest
Posts: n/a
 
      21st Jun 2006
Problem: correct datagrid display of time portion of date
Setup: `1-Access dB,fld formatted as "Date- short time"
2-dataGrid col. formatted as "t"
Operation: The text an a button is created from a time portion of a
date,where when "clicked" the text modifies a dataset cell. By converting
the text to a date(Cdate()) and then via ds.dTbl(row)(col)= cDate(.text)
changes the cell contents.

results: the dataGrid displays only the date portion which is the default
date and when the daTbl is updated id dispalys the same. Note that if a
manual entry of a time portion is typed into the Access tbl cell then it
carries over and displays correctly in the dataGrid but when i try to change
the dataset and update it only displays the default date prtion.
 
Reply With Quote
 
 
 
 
=?Utf-8?B?V2F5bmUtSS1N?=
Guest
Posts: n/a
 
      21st Jun 2006
Hi Ogetti

Are you using a form function or query
Can you let us have the full formula you are using for the data convert
which you say has (Cdate())
and it would help to have the "other bit". At the moment it seems you are
trying to change text to a date / time portion of the text and then change it
back. This can't be right so could put it very simply (I'm a bit slow
tonight)


--
Wayne
Manchester, England.



"Ogetty" wrote:

> Problem: correct datagrid display of time portion of date
> Setup: `1-Access dB,fld formatted as "Date- short time"
> 2-dataGrid col. formatted as "t"
> Operation: The text an a button is created from a time portion of a
> date,where when "clicked" the text modifies a dataset cell. By converting
> the text to a date(Cdate()) and then via ds.dTbl(row)(col)= cDate(.text)
> changes the cell contents.
>
> results: the dataGrid displays only the date portion which is the default
> date and when the daTbl is updated id dispalys the same. Note that if a
> manual entry of a time portion is typed into the Access tbl cell then it
> carries over and displays correctly in the dataGrid but when i try to change
> the dataset and update it only displays the default date prtion.

 
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
how do i change the date format in access to be short date? =?Utf-8?B?U2hhbmE=?= Microsoft Access Getting Started 5 25th Jan 2009 12:41 PM
Re: convert access date Format() to French date , use of ORDER BY SQL Ken Snell \(MVP\) Microsoft Access Queries 1 28th Nov 2008 03:10 PM
Converting Date Format from YYYY-MM-DD to Access date format =?Utf-8?B?YWN0aXZlZ2lybA==?= Microsoft Access 3 21st Jun 2005 11:03 PM
Export Outlook date field as date/time format to Access database =?Utf-8?B?QmVja3k=?= Microsoft Outlook Discussion 0 2nd Dec 2004 02:49 PM
How to convert Excel serial date into Access date format? RADO Microsoft Access 2 27th Dec 2003 12:14 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:21 AM.