Access 2007
------------
Code
End Code
----------
Gives error Compile error: User-Defined type not defined.
They try to post hours to an employee and it gives this with the top line highlighted.
I have Microsoft DAO 3.6 Object Library selected under tools --> references for my database.
------------
Code
Private Sub btnPost_Click() //This line is highlighted in yellow
Dim strMsgBox As StringForm.Recalc
If txtEnterTotalHours = txtHourTotal Then
Dim strMacroName As String
strMacroName = "mcrPost"
DoCmd.RunMacro strMacroName
Else: MsgBox ("Total Hours Worked must Equal Actual Hours Entered")
End If
End Sub
End Code
----------
Gives error Compile error: User-Defined type not defined.
They try to post hours to an employee and it gives this with the top line highlighted.
I have Microsoft DAO 3.6 Object Library selected under tools --> references for my database.