Microsoft Access Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft Access Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old February 2nd, 2004, 10:18 AM
sherriff sherriff is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 10 sherriff User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 32 m 39 sec
Reputation Power: 0
Help with Programmatically adding data

Ok, hope I can get some help on this. I want to programmatically add new records maybe in MS Access Module. I would like to see a sample in the simplest form such as adding a new record for each day of the week for the entire year to an existing table. The new record can consist of ID (auto number) and Date. So the first few records in the table would look like this:
ID Date
1 01/01/2004
2 02/01/2004
3 03/01/2004
etc.....
The module would loop until it hits Dec 31/2004. If I can get a sample, I can maybe alter it to reflect my actual data.

Thanks in advance for any help.

Sherriff

Reply With Quote
  #2  
Old February 2nd, 2004, 03:03 PM
sherriff sherriff is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 10 sherriff User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 32 m 39 sec
Reputation Power: 0
Got it working

Ok, figured this one out. I just used the Module in Access and did some VB ADO to add new records. I also did not want to add weekends so I set my dates and checked for what day it was and if Sat, add 48 hours or if Sun. add 24 hours. If statements jump over weekends instead of adding to my table. Works well. Now I can add all employees standard Mon to Fri hours for the entire year in a matter of seconds....

Thanks

Sherriff

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > Help with Programmatically adding data


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway