M
MikeT
Hi,
Can anyone help. I need to set up a command button that will open a report
for the current record on display on the form.
I have RecordID on my form and RecordID on the report and have used the
following expression:
DoCmd.OpenReport stDocName, acViewPreview, , "[RecordID]" = " &
Me.[RecordID],,acWindowNormal"
However when i use the command button all it does is open up the report with
the headers and no info? I am assuming that there is a problem with the
link, but i'm not sure what? The recordID is an autonumber.
There is another issue, which is I would like to be able to extract data
between two dates that are recorded on a subform, but one step at a time i
think.
Thanks for any help
Can anyone help. I need to set up a command button that will open a report
for the current record on display on the form.
I have RecordID on my form and RecordID on the report and have used the
following expression:
DoCmd.OpenReport stDocName, acViewPreview, , "[RecordID]" = " &
Me.[RecordID],,acWindowNormal"
However when i use the command button all it does is open up the report with
the headers and no info? I am assuming that there is a problem with the
link, but i'm not sure what? The recordID is an autonumber.
There is another issue, which is I would like to be able to extract data
between two dates that are recorded on a subform, but one step at a time i
think.
Thanks for any help