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 January 19th, 2004, 09:17 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
Angry Help with bulk loading some data

Hi, I have a VB application that is basically a payroll or timesheet type of program that uses access as the database. I am going to need to add each employees standard work hours Monday to Friday for the next several months all at one time to avoid doing this manually though the application. So what I need is a macro or something that will add only info for a few fields like Start time, End Time, employee, employee number and date. All these fields are the same each day of the week for each employee, except for the date. Problem is that I need the date to move to the next day and add each record but I also need it to exclude weekends. Anyone have any ideas?

Thanks

Sherriff

Reply With Quote
  #2  
Old January 21st, 2004, 10:56 AM
supersubra's Avatar
supersubra supersubra is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Coimbatore, India
Posts: 280 supersubra User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 15 m 10 sec
Reputation Power: 6
It is better to have a table for Shop Calendar
eg. a table named SCL with fields
ThisDate Datetime
WorkingDay Boolean
Counter Long

and append the table with all the 365 dates in financial year with true status to workingday initially and afterwards update workingday field with false for sundays and holidays. Now create a loop counter which will increment only on working days and update this series to counter. Now you can pickup the next working day from this table at any time for a given date by looking at counter field and incrementing its value to one. If i am not clear just tell me I will reply in detail.

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > Help with bulk loading some 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 2 hosted by Hostway