A very simple error BUT the highlighted field is declared as an unbound field.
Me.PCopiesFld in line 4 of the code is highlighted when I compile with the error above.
All of the variables are declared. I don't have a problem running the form. It all works OK it's just when I go to compile this comes up as an error
Any ideas that help me overcome this problem will be appreciated
Atrium
Code:
Private Sub CopiesOKButt_Click()
'MsgBox "PCopiesFld = " & Me.PCopiesFld
If Me.SourceFormFld = "Clients" Then
Forms![ViewPrintSendClientFrm]![CopiesReqFld] = Me.PCopiesFld
Else
Forms![ViewPrintSendFrm]![CopiesReqFld] = Me.PCopiesFld
End If
DoCmd.Close acForm, "PrintCopiesFrm", acSaveYes
End Sub
Me.PCopiesFld in line 4 of the code is highlighted when I compile with the error above.
All of the variables are declared. I don't have a problem running the form. It all works OK it's just when I go to compile this comes up as an error
Any ideas that help me overcome this problem will be appreciated
Atrium