Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RECORDSOURCE FOR MY REPORT

Status
Not open for further replies.

619Ghz

Programmer
Dec 3, 2003
17
US
To avoid creating at least 30 different Reports in Access 97, with the big memory (and work) overhead I would like to set the Report' s RecordSource property using VBA code. How can I do this. I have failed miserably using all 'known methods' . Please save me!!!
 
add RecordSource = "TableName" to the report open like this:

Private Sub Report_Open(Cancel As Integer)
RecordSource = "TableName"
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top