Synchronizing a form & report

J

JD

While in a form adding info to the fields I want to open
a report in such a way that it displays or prints a
form's current record. As it is written below it only
opens a report with no information in any of the fields.

I'm using auto number for the id field

Private Sub Command68_Click()
If Forms![FORMleadsheet].Dirty = True Then Forms!
[FORMleadsheet].Dirty = False
DoCmd.OpenReport "RPTactiveleadsheet",
acViewPreview, , "[Customer ID]=Forms![FORMleadsheet]!
[Customer ID]"
End Sub
..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top