G
Guest
Hi everyone, using A02 on XP. Not a programmer but trying to get there. I
have a form (with a subform). On the subform a record is created, edited,
macro validated and saved. Have a btn to preview report. Have the following
in the OnOpen event of the report:
Private Sub Report_Open(Cancel As Integer)
Me.Filter = Forms![fSARMain]![fSAR].Form![Key]
Me.FilterOn = True
End Sub
(I got the wordage: Forms![fSARMain]![fSAR].Form![Key] with the expression
builder. [Key] is the unique ID field on the subform.)
(fSAR is a subform)
On the subform, the field on the record I want reads: 00022005
With the form open to that record, I click the preview report btn and
receive a
dialog box titled "Enter Parameter Value" and where it would normally say
what I want like "what key?", instead it reads "00022005". If I type 00022005
into the parameter inquiry, the report opens with all records. Press enter on
the blank and get the ol' fav ERROR in all fields. UGGGHHH! Can't figure out
what I'm doing wrong!
I would appreciate any help or advice. Thanks in advance!
have a form (with a subform). On the subform a record is created, edited,
macro validated and saved. Have a btn to preview report. Have the following
in the OnOpen event of the report:
Private Sub Report_Open(Cancel As Integer)
Me.Filter = Forms![fSARMain]![fSAR].Form![Key]
Me.FilterOn = True
End Sub
(I got the wordage: Forms![fSARMain]![fSAR].Form![Key] with the expression
builder. [Key] is the unique ID field on the subform.)
(fSAR is a subform)
On the subform, the field on the record I want reads: 00022005
With the form open to that record, I click the preview report btn and
receive a
dialog box titled "Enter Parameter Value" and where it would normally say
what I want like "what key?", instead it reads "00022005". If I type 00022005
into the parameter inquiry, the report opens with all records. Press enter on
the blank and get the ol' fav ERROR in all fields. UGGGHHH! Can't figure out
what I'm doing wrong!
I would appreciate any help or advice. Thanks in advance!