Saving User's Settings

The Settings tab in the project properties can be used to save user settings. Note the Type is Date and the Scope is User.

Defining Date User Setting

To give the user a range of time sheets to be retrieved the following was added to the code:

User date selection

The linkLable takes the date from the From Date (DateTimePicker) and stores it to the app.config file. config file

The code behind the link Label:
 Private Sub Linkdate_LinkClicked(sender As System.Object, e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles Linkdate.LinkClicked 
	My.Settings.DateWorked = dtpFrom.Value 
	lblUpdate.Text = "Date set to: " & My.Settings.DateWorked.ToString 

End Sub 

This speeds up the application by getting a few time sheets rather than all 11,868 time sheets as of last count.