Thanks, Jeff. Not really confusing - just not enough information. Don't
forget, I can't see your database. Only way for me to know what your
query is named, and how your report works, etc, is what you tell me
.
Try something like this...
Dim rst As DAO.Recordset
Set rst = CurrentDb.OpenRecordset("SELECT ListingID FROM [Active
Listing]")
With rst
Do Until .EOF
DoCmd.OpenReport "YourReport", , , "ListingID=" & !ListingID
.MoveNext
Loop
.Close
End With
Set rst = Nothing
--
Steve Schapel, Microsoft Access MVP
Jeff said:
Sorry if I am confusing the issue. There is a report for each active
listing that we have. WE determine the active listings from our Listing
table by running an active listing query. The Field ListingID on the
report matches the field ListingID in the query.