Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Tue, 3 Jan 2006 09:12:05 -0800,    group: microsoft.public.dotnet.datatools        back       


Writing to Access Database Problem   
Hi,

I am updating an Access Database (4.0 all service packs up to date) with a 
vb.net web application. The data adapter and update commands are all formed 
with the wizard. When I update a field that is defined as 'Date/Time' with a 
'General' format in the database with the system variable 'Now', vb drops the 
time component and only updates the database with the date. This causes 
concurrency exceptions also. When I prime the database with a date without 
the time, all is well. I noticed that the data adapter defined the column as 
'Date'. Any help would be appreciated.  Thanks.
-- 
JP
date: Tue, 3 Jan 2006 09:12:05 -0800   author:   McMogul

RE: Writing to Access Database Problem   
I have more information to add: when I change the generrated code from 
'ctype(.....,dbdate)' to 'ctype(.....,date)' it works like a champ. Must be a 
Microsoft bug.
-- 
JP


"McMogul" wrote:

> Hi,
> 
> I am updating an Access Database (4.0 all service packs up to date) with a 
> vb.net web application. The data adapter and update commands are all formed 
> with the wizard. When I update a field that is defined as 'Date/Time' with a 
> 'General' format in the database with the system variable 'Now', vb drops the 
> time component and only updates the database with the date. This causes 
> concurrency exceptions also. When I prime the database with a date without 
> the time, all is well. I noticed that the data adapter defined the column as 
> 'Date'. Any help would be appreciated.  Thanks.
> -- 
> JP
date: Tue, 3 Jan 2006 12:06:05 -0800   author:   McMogul

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us