When i click on the Save button in the interface it executes the SaveData() steps. but i am being told that i need to update the date stamp on the Access file. any ideas as to how i would make this change?
Code:
Private Sub ProblemTableBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ProblemTableBindingNavigatorSaveItem.Click
SaveData()
End Sub
Private Sub SaveData()
With Me
.Validate()
.ProblemTableBindingSource.EndEdit()
.TableAdapterManager.UpdateAll(.GlobalSystemInfoDataSet)
Write_Data()
End With
End Sub
Private Sub Write_Data()
Dim fs As New FileStream("C:\final\testdata.txt", FileMode.Append, FileAccess.Write)
Dim sw As New StreamWriter(fs)
Dim domainName As String = Environment.UserDomainName
Dim userName As String = Environment.UserName
sw.WriteLine(DateTime.Now + " " + domainName + "\" + userName + " ---CHANGE MADE WILL EVENTUALLY GO HERE")
sw.Close()
fs.Close()
End Sub
Comment