I have tried the following but get this error message User defined type not defined
And the DAO.Recordset is highlighted in the following module
Function AutoFillNewRecord(F As Form)
Dim RS As DAO.Recordset, C As Control
Dim FillFields As String, FillAllFields As Integer
On Error Resume Next...