hi.... i am used a tutorial found at...http://www.databasedev .co.uk/login.html... to create a login form. works fine, what i am wanting to do is on one of my forms, where data is entered i use the following code..
to move the data entered to another memo box on the form where the data is appended to. as you can see it date/time stamps the data entered as it moves it across.
is there anyway of altering either/both code so after the date/time stamp it also stamps the name of the person that logged on the database from the login form from the tutorial???
cheers
Code:
Private Sub InputData_Click()
If InputData.Caption = "Input New Notes" Then
NotesMemoField.Visible = True
NotesMemoField.SetFocus
InputData.Caption = "Add Data"
Else
If Len(NotesMemoField.Value) > 0 Then
DoCmd.SetWarnings False
NotesMemoField.SetFocus
NotesMemoField.SelStart = 1
NotesMemoField.SelLength = Len(NotesMemoField.Value)
DoCmd.RunCommand acCmdSpelling
NotesMemoField.SelLength = 0
DoCmd.SetWarnings True
Forms!Issues![TabControl].Pages("Comments").SetFocus
Me.Comment = Me.Comment & " " & vbNewLine & Now & ": " & Me.NotesMemoField & vbNewLine
End If
InputData.Caption = "Input New Notes"
Me.NotesMemoField = ""
NotesMemoField.Visible = False
End If
End Sub
is there anyway of altering either/both code so after the date/time stamp it also stamps the name of the person that logged on the database from the login form from the tutorial???
cheers
Comment