Data Entry form - Report?

mounty76

Registered User.
Local time
Yesterday, 22:21
Joined
Sep 14, 2017
Messages
341
Hi All,

Is there anyway to make a report based on a new record just entered into a data entry form?

FYI The data entry form also has a subform with the child table in

Cheers
 
the entry form would have a button to open the report.
The report query would look on the form for the record key , say: txtID
qry: select * from table where [id]=forms!fMyForm!txtID

then the report would open on the record currently shown:
docmd.OpenReport "rRpt",acViewPreview
 
I tried this but it didn't work? Not sure why but was guessing it was because it was a data entry form?
 
I tried this but it didn't work? Not sure why but was guessing it was because it was a data entry form?
Can't see why the solution offered wouldn't work.
Post a copy for us to look at.
 
Perhaps the record needs to be saved before the report is opened.
EDIT:
Something like:
Code:
If Me.Dirty = True Then

     Me.Dirty = False

End If
before the line that opens the report.
 
Last edited:
🤦‍♂️ my bad, sorry, totally rooky mistake....all good
 
What did you do?
I was going to suggest switching data entry off and back on again.
 

Users who are viewing this thread

Back
Top Bottom