I want to put simple VB commands on buttons of a report.
For instance I copied this for a button in another DB
Private Sub cmdSave_Click()and get this error message. what am I not correcting?
' Put focus on "key" control
Me.CompanyName.SetFocus
' Call the common save routine
If Not SaveIt() Then Exit Sub
End Sub
Compile Error:How do I define it to work?
Sub or Function not defined