N
Newf via AccessMonster.com
Good day!! I've been having a few problems with this and I'm hoping someone
can help moi. I would like to print the current record that is on the form.
P Key - Id_Personal
Push Button - frm_cmd_Print_Record
Reprt - rptTEST
Here is my code:
If Me.Dirty Then 'Save any changes.
Me.Dirty = False
End If
If Me.NewRecord Then 'Make sure there is a record to print.
MsgBox "Select the record to print"
Else
DoCmd.OpenReport "rptTEST", acViewPreview, , "Id_Personal= " & Me.Id_Personal
End If
The problem is I'm having a an error with - Me.Id_Personal
COMPILE ERROR:
Method or Data member not found.
Any ideas??
Newf
~Everyone should have a Newfie as a friend~
can help moi. I would like to print the current record that is on the form.
P Key - Id_Personal
Push Button - frm_cmd_Print_Record
Reprt - rptTEST
Here is my code:
If Me.Dirty Then 'Save any changes.
Me.Dirty = False
End If
If Me.NewRecord Then 'Make sure there is a record to print.
MsgBox "Select the record to print"
Else
DoCmd.OpenReport "rptTEST", acViewPreview, , "Id_Personal= " & Me.Id_Personal
End If
The problem is I'm having a an error with - Me.Id_Personal
COMPILE ERROR:
Method or Data member not found.
Any ideas??
Newf
~Everyone should have a Newfie as a friend~