In Report_Open() sub on the main report I have:
SQLstring = "Select * from dbo_NewPatient where id=49"
Dim rs As Recordset
Set rs = CurrentDb.OpenRecordset(SQLstring, dbOpenDynaset, dbSeeChanges)
Now I want to update a Label caption in a subreport, On my subreport I have tried:
Private Sub Report_Open(Cancel As Integer)
Labal1.Caption = Me.Parent.rs("index")
End Sub
But Me.Parent.rs("index") doesn't work, I've tried multple iterations of the Me!, Me.[ and things like that, but can't seem to find what the syntax should be. How would i update this Label1.Caption?
I'm going to have multiple subreports, so that's why I have the SQL command on the main report, I didn't want to have to call the SQL command on each subreport.
Thanks for any help or direction!