PC Review


Reply
Thread Tools Rate Thread

data sql vba

 
 
Georges
Guest
Posts: n/a
 
      21st Feb 2005
Hi,

Which vba-code do i need to add the current date into a table (tbldate) only
with a click from a buttum on a form. I use Ac2000.
This tbldate has only one field because each date is unique.

regards Georges


 
Reply With Quote
 
 
 
 
Tim Ferguson
Guest
Posts: n/a
 
      21st Feb 2005
"Georges" <(E-Mail Removed)> wrote in
news:4219914b$0$23952$(E-Mail Removed):

> Which vba-code do i need to add the current date into a table
> (tbldate) only with a click from a buttum on a form. I use Ac2000.


This uses DAO -- it's a little bit different if you want to use ADO.

strSQL = "INSERT INTO MyDateTable (MyDateField) " & _
"VALUES (DATE())"
CurrentDB().Execute strSQL, dbFailOnError

> This tbldate has only one field because each date is unique.


This is very strange: if there is nothing else in the record, how do you
know what date applies to what?

HTH


Tim F

 
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
Save 60% on Data Entry, Data Conversion, Data Processing Services byOffshore-Data-Entry dataentryoffshore@gmail.com Microsoft Excel Programming 0 4th Jun 2008 04:02 PM
Save 60% on Data Entry, Data Conversion, Data Processing Services byOffshore-Data-Entry dataentryoffshore@gmail.com Microsoft Excel Programming 0 4th Jun 2008 04:00 PM
Professional Data Conversion,Data Formats and Affordable Data EntryServices by Data Entry India Data Entry India Microsoft Access Form Coding 0 31st Mar 2008 11:50 AM
Data Entry Online, Data Format, Data Conversion and Data EntryServices through Data Entry Outsourcing admin.dataentryoutsourcing@gmail.com Microsoft Excel Misc 0 20th Mar 2008 12:45 PM
Data Entry Online, Data Format, Data Conversion and Data EntryServices through Data Entry Outsourcing admin.dataentryoutsourcing@gmail.com Microsoft Access Form Coding 0 20th Mar 2008 12:44 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:25 AM.