Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / November 2006

Tip: Looking for answers? Try searching our database.

Date in a sql table

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
alvin Kuiper - 09 Nov 2006 19:36 GMT
Hi
I use thsi code
rs.Open "update tilmelding set behandlet = 1, behandler = '" &
ReturnUserName & "', behandletdato =  " & Date & "   where behandlet = 0 ",
Cnxn, adCmdTable

But behandletdato gets not the value off date
just now the value is 03-07-1894

CAn seomeone help here ?

Alvin
Barry Gilbert - 09 Nov 2006 20:06 GMT
I think you need to surround the date value with # signs.
rs.Open "update tilmelding set behandlet = 1, behandler = '" &
ReturnUserName & "', behandletdato =  #" & Date & "#   where behandlet = 0 ",
Cnxn, adCmdTable

Barry

> Hi
> I use thsi code
[quoted text clipped - 8 lines]
>
> Alvin
alvin Kuiper - 09 Nov 2006 20:07 GMT
I have done it
Alvin

"alvin Kuiper" skrev:

> Hi
> I use thsi code
[quoted text clipped - 8 lines]
>
> Alvin
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.