S
Seikyo
I would like to know if there is any problem with the below syntax. it seem
not able to update the Label that I created. Basically, I want the forms to
update the Label(UpdatedDate) field to the current date when I click on "Back
To Main" Button.
Private Sub BMain_Click()
On Error GoTo Err_BMain_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Switchboard"
DoCmd.SetWarnings False
Me!UpdateDate.Caption = "Last Updated On " & Format(Now, "ddd, mmm d
yyyy, hh:mm:ss AMPM")
DoCmd.Save acForm, "Import TimeCard Forms"
DoCmd.Close
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_BMain_Click:
Exit Sub
Err_BMain_Click:
MsgBox Err.Description
Resume Exit_BMain_Click
End Sub
not able to update the Label that I created. Basically, I want the forms to
update the Label(UpdatedDate) field to the current date when I click on "Back
To Main" Button.
Private Sub BMain_Click()
On Error GoTo Err_BMain_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Switchboard"
DoCmd.SetWarnings False
Me!UpdateDate.Caption = "Last Updated On " & Format(Now, "ddd, mmm d
yyyy, hh:mm:ss AMPM")
DoCmd.Save acForm, "Import TimeCard Forms"
DoCmd.Close
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_BMain_Click:
Exit Sub
Err_BMain_Click:
MsgBox Err.Description
Resume Exit_BMain_Click
End Sub