timesheet
-
sharmilangel
- Posts: 6
- Joined: Tue Dec 19, 2006 10:00 pm
timesheet
this is the code referred to in my post 'calculating time' in the just basic forum "Novice"[/code]
- Attachments
-
timesheet1.bas- (69.93 KiB) Downloaded 1287 times
Last edited by sharmilangel on Thu Feb 15, 2007 4:42 am, edited 1 time in total.
Here is an updated version getting rid of overlapping controls and repetitive code lines.
- Attachments
-
timesheet1.bas- Update to correct some problems and reduce code size
- (60.5 KiB) Downloaded 1265 times
Stefan
The invisible Admin
The invisible Admin
-
ShirleyMSmith
- Posts: 22
- Joined: Tue Oct 11, 2005 5:23 am
The Leave Type comboboxes and the textboxes are changed to have consecutively named handles, and I also added routines that greatly reduce the amount of code that is needed. I also added to the [Save] routine, although it isn't finished, but it works well enough for you to hopefully get some ideas about how you might save the data.
- Attachments
-
timesheet1_StefanP_SMWS.zip- Updated to have consecutively named handles, added routines to reduce code plus add to program.
- (6.88 KiB) Downloaded 1196 times
-
sharmilangel
- Posts: 6
- Joined: Tue Dec 19, 2006 10:00 pm
excel timesheet
here is the timesheet that i spoke about in my posts.
- Attachments
-
TimeSheet1.zip- (20.8 KiB) Downloaded 1243 times
-
ShirleyMSmith
- Posts: 22
- Joined: Tue Oct 11, 2005 5:23 am
Updated Timesheet
Adds the following routines:
Sub GetTimeWorked, Sub GetTotalTimeWorked and Function GetTotalDeduction(
The Sub GetTimeWorked replaces the Sub CalcStartFinishBreak, because of the later being a minute off sometimes, however I left in CalcStartFinishBreak in case you decide to use it instead, but it isn't used in this version.
Shirley
Sub GetTimeWorked, Sub GetTotalTimeWorked and Function GetTotalDeduction(
The Sub GetTimeWorked replaces the Sub CalcStartFinishBreak, because of the later being a minute off sometimes, however I left in CalcStartFinishBreak in case you decide to use it instead, but it isn't used in this version.
Shirley
- Attachments
-
Timesheet1_2.zip- Update to add more routines
- (10.83 KiB) Downloaded 1267 times
-
ShirleyMSmith
- Posts: 22
- Joined: Tue Oct 11, 2005 5:23 am
Timesheet
Adds routines to the Timesheet to fill in the last two rows. New routines calculate flextimes and clear textboxes. Also makes it so that textboxes in columns with no times entered in remain blank rather than filling them with "00:00".
- Attachments
-
Timesheet1_3.zip- Timesheet update 31 Jan 2007
- (11.92 KiB) Downloaded 1197 times
-
sharmilangel
- Posts: 6
- Joined: Tue Dec 19, 2006 10:00 pm
Timesheet
This is the code I modified and didn't seem to work
- Attachments
-
Timesheet.bas- (48.93 KiB) Downloaded 1190 times
Last edited by sharmilangel on Thu Feb 15, 2007 4:44 am, edited 1 time in total.
-
ShirleyMSmith
- Posts: 22
- Joined: Tue Oct 11, 2005 5:23 am
Timesheet
Adds Save and Open routines, plus Date combobox routines. The Save/Open routines will need to be modified to make each employee's timesheet confidential.
- Attachments
-
Timesheet1_4.zip- Adds Save/Open routines and Date combobox routines.
- (15.7 KiB) Downloaded 1236 times
-
ShirleyMSmith
- Posts: 22
- Joined: Tue Oct 11, 2005 5:23 am
Timesheet
Changes:
Added username & password routines.
Data file stores blank cells as "*";Chr$(blank+48 ) rather than "*";blank
Added functions to compress the time strings in the data file.
Compressed data in the data file by converting times into minutes, then into coded strings.
Added new code lines to both save and open/load routines.
Expanded [EditAddName] routines slightly: (window partly created) - for section heads use.
[Edit] Added ability to toggle from "Save" mode to "Save As" mode.
Added username & password routines.
Data file stores blank cells as "*";Chr$(blank+48 ) rather than "*";blank
Added functions to compress the time strings in the data file.
Compressed data in the data file by converting times into minutes, then into coded strings.
Added new code lines to both save and open/load routines.
Expanded [EditAddName] routines slightly: (window partly created) - for section heads use.
[Edit] Added ability to toggle from "Save" mode to "Save As" mode.
- Attachments
-
Timesheet1_4e.zip- Update with new routines added as described above. Username, Password, Data file compression, [EditAddName] window expanded.
- (17.79 KiB) Downloaded 1206 times
-
sharmilangel
- Posts: 6
- Joined: Tue Dec 19, 2006 10:00 pm
Form
This is a start to what the Section Head program could be like.
- Attachments
-
SecTime.bas- (39.27 KiB) Downloaded 1215 times
-
ShirleyMSmith
- Posts: 22
- Joined: Tue Oct 11, 2005 5:23 am
Timesheet
Updated Timesheet (it is still not finished).
Adds Calendar to get the date for the timesheet to open. Updated date arrays and date comboboxes; added temp timesheet data file. Updated Save and Open routines.
Adds Calendar to get the date for the timesheet to open. Updated date arrays and date comboboxes; added temp timesheet data file. Updated Save and Open routines.
- Attachments
-
Timesheet1_5c.zip- Updated Timesheet program, version 5c
- (23.65 KiB) Downloaded 1180 times
-
ShirleyMSmith
- Posts: 22
- Joined: Tue Oct 11, 2005 5:23 am
Timesheet
Update Timesheet program (it's still not finished).
Contains a new Timesheet version (Timesheet_06.bas) along with the 'Setup' window program (DevelopDialog_modal_06.bas), and the program (EditComboboxLists_01.bas) that initializes the 3 combobox arrays, plus gets the network path for all of the data files that will be shared. Also another program (Create_TimesheetTestFiles_02.bas) is included that creates multiple fortnights timesheet data for testing purposes. The 'Setup' program will eventually be put into the main Timesheet*.bas program.
Contains a new Timesheet version (Timesheet_06.bas) along with the 'Setup' window program (DevelopDialog_modal_06.bas), and the program (EditComboboxLists_01.bas) that initializes the 3 combobox arrays, plus gets the network path for all of the data files that will be shared. Also another program (Create_TimesheetTestFiles_02.bas) is included that creates multiple fortnights timesheet data for testing purposes. The 'Setup' program will eventually be put into the main Timesheet*.bas program.
- Attachments
-
Timesheet_06.zip- Update Timesheet program; 'Employee Setup' routines program; 'Initializing data' program and 'Create Timesheet test file' program.
- (30.87 KiB) Downloaded 1176 times
-
sharmilangel
- Posts: 6
- Joined: Tue Dec 19, 2006 10:00 pm
Timesheet_06a
Have added flexbalance code and inserted info into dat file.
- Attachments
-
Timesheet(fulltime).zip- (40.45 KiB) Downloaded 1151 times
-
ShirleyMSmith
- Posts: 22
- Joined: Tue Oct 11, 2005 5:23 am
Timesheet
Includes an updated main timesheet program and an updated temporary data file setup program 'Create_TimesheetTestFiles_03.bas' that now will create timesheet dates that are current rather than ending in February like the old program did! It creates a test data file, with filled timesheets for one years worth of consecutive fortnights, up to the current fortnight's timesheet, which only has two days worth of data in it.
The main timesheet program (Timesheet_07.bas) now gets previous flextime balances. I also fixed a bug in the calendar date selector routines where the 'Pay Period Ending' date array items would end up as an earlier date than the 'Week Beginning Date'.
This zip file doesn't include the other two programs that my previous zip did.
The main timesheet program (Timesheet_07.bas) now gets previous flextime balances. I also fixed a bug in the calendar date selector routines where the 'Pay Period Ending' date array items would end up as an earlier date than the 'Week Beginning Date'.
This zip file doesn't include the other two programs that my previous zip did.
- Attachments
-
Timesheet_07.zip- Main Timesheet program, temp data file creator program and 2 data files.
- (20.88 KiB) Downloaded 1377 times