Record Source

POM

Registered User.
Local time
Tomorrow, 02:05
Joined
Dec 27, 2013
Messages
39
Hi all I will best for all thanks for help me

I have a report I want using for tow query by change record source like this code

Report_Qqtykam.Report.RecordSource = "Qqtykam"

but is not working please help me
 
If you open the report by DoCmd object, then you can use the OpenArgs parameter to transfer the recordsource name to the report.
And then in the report's open event set the reports record source.
Open the report by the DoCmd:
Code:
  DoCmd.OpenReport "YourReportName", acViewReport, , , , "YourReportsRecordSource"
Set the recordsource:
Code:
Private Sub Report_Open(Cancel As Integer)
   Me.RecordSource = Me.OpenArgs
End Sub
 
Hello my friend very very very Thanks for you is was working I'm very haply
I wish the beast for you:)
 
Hello my friend very very very Thanks for you is was working I'm very haply
You're welcome. :)
I wish the beast for you:)
You too!
Beast = animal, creature etc.
biggrin.gif
biggrin.gif
biggrin.gif
 
I'm so sorry my bro ,please forgive me
I wish best for you ,sorry again
 

Users who are viewing this thread

Back
Top Bottom