J
jjosephmn
Attempted to preform steps to autofill from KB article #210236
http://support.microsoft.com/default.aspx?scid=KB;EN-US;210236
Only thing different I entered is on step 5 I used Support instead of
Customer because thats the form I am attempting to add this autofill
function. Also I am adding this directly into the ONCurrent line and
not into the [EventPrecedure]using Visual Basic (that didnt work
either). When I start a new record I get
Compiler Error
User-defined type not defined
It seems to point at this part of the code.
1.The first line is highlighted in Yellow
Function AutoFillNewRecord(F As Form)
2. This part of the second line is highlighted in blue
RS As DAO.Recordset
Here is the first part of the code
Function AutoFillNewRecord(F As Form)
Dim RS As DAO.Recordset, C As Control
Dim FillFields As String, FillAllFields As Integer
On Error Resume Next
' Exit if not on the new record.
If Not F.NewRecord Then Exit Function
Please help I've had no success.
TIA
http://support.microsoft.com/default.aspx?scid=KB;EN-US;210236
Only thing different I entered is on step 5 I used Support instead of
Customer because thats the form I am attempting to add this autofill
function. Also I am adding this directly into the ONCurrent line and
not into the [EventPrecedure]using Visual Basic (that didnt work
either). When I start a new record I get
Compiler Error
User-defined type not defined
It seems to point at this part of the code.
1.The first line is highlighted in Yellow
Function AutoFillNewRecord(F As Form)
2. This part of the second line is highlighted in blue
RS As DAO.Recordset
Here is the first part of the code
Function AutoFillNewRecord(F As Form)
Dim RS As DAO.Recordset, C As Control
Dim FillFields As String, FillAllFields As Integer
On Error Resume Next
' Exit if not on the new record.
If Not F.NewRecord Then Exit Function
Please help I've had no success.
TIA