Report-Subreport Linking doesn't work

L

lan yu

Hi.

I have a problem with linking report and subreport. I set Link
Master/Child Fields to "Object ID". But subreport looks just the same
on every page.

To be more precise:

Subreport has the fields "Object ID" and "Object Type ID". When I run
the query it is based on, I get only one record:
Object ID Object Type ID
172 11

The Subreport is in the footer of the group "Object ID". When I view
the report there are in total 5 groups with different "Object IDs", one
of which is 172. But subreport displays Object Type ID = 11 in the
footer of every group.

There is also a Picture in my subreport, its data is loaded during
run-time based on Object Type ID, but I don't think the problem has
anything to do with it. Just in case I set a condition to only run the
code loading pictures if Me.Recordset.RecordCount >0.
 
D

Duane Hookom

I have never experienced issues with the Link Master/Child properties not
filtering subreports as expected. I would confirm the values and possibly
display the values of the link field in both the main and sub reports as a
confirmation. Make sure your properties are enclosed in quotes. They should
be like:
[Object ID]
 
L

lan yu

I created another report to use as subreport - very simple, without
pictures. Then I did linking via the wizard. I still have the same
problem.

By the way, the wizard didn't include field names in square brackets.
But with them or without - it still doesn't work.
 
L

lan yu

Yes, i did. The parent report displays the value 172 while the
subreport displays all the values.
 
D

Duane Hookom

Then go back to the Link Master and Link Child properties to make sure they
are correct.


--
Duane Hookom
MS Access MVP

lan yu said:
Yes, i did. The parent report displays the value 172 while the
subreport displays all the values.
 
L

lan yu

My actual field names are in Russian (I used [Object ID] to make it
more readalbe). Here are the actual values:

Parent report field name: ëÏÄ ÍÕÆÔÙ
Subreport field name: ëÏÄ ÍÕÆÔÙ
Link Child Fields: [ëÏÄ ÍÕÆÔÙ]
Link Master Fields: [ëÏÄ ÍÕÆÔÙ]
(I also tried it without square brackets)

None of the controls are named ëÏÄ ÍÕÆÔÙ.

Looks right to me =)

"""Duane Hookom ÐÉÓÁÌ(Á):
"""
 
L

lan yu

The names didn't come out right. Sorry. Anyway, they are exactly the
same.

"""lan yu пиÑал(а):
"""
My actual field names are in Russian (I used [Object ID] to make it
more readalbe). Here are the actual values:

Parent report field name: ëÃÄ ÃÕÆÔÙ
Subreport field name: ëÃÄ ÃÕÆÔÙ
Link Child Fields: [ëÃÄ ÃÕÆÔÙ]
Link Master Fields: [ëÃÄ ÃÕÆÔÙ]
(I also tried it without square brackets)

None of the controls are named ëÃÄ ÃÕÆÔÙ.

Looks right to me =)

"""Duane Hookom ÃÉÓÃÃŒ(Ã):
"""
Then go back to the Link Master and Link Child properties to make sure they
are correct.
 
D

Duane Hookom

I am at a loss since I have never seen a subreport that didn't respect the
Link Master/Child filtering. I would suggest you rebuild the report and
subreport but it seems you have already tried re-creating a simple example.

--
Duane Hookom
MS Access MVP

lan yu said:
The names didn't come out right. Sorry. Anyway, they are exactly the
same.

"""lan yu ?????(?):
"""
My actual field names are in Russian (I used [Object ID] to make it
more readalbe). Here are the actual values:

Parent report field name: ëÏÄ ÍÕÆÔÙ
Subreport field name: ëÏÄ ÍÕÆÔÙ
Link Child Fields: [ëÏÄ ÍÕÆÔÙ]
Link Master Fields: [ëÏÄ ÍÕÆÔÙ]
(I also tried it without square brackets)

None of the controls are named ëÏÄ ÍÕÆÔÙ.

Looks right to me =)

"""Duane Hookom ÐÉÓÁÌ(Á):
"""
Then go back to the Link Master and Link Child properties to make sure
they
are correct.
 
L

lan yu

I guess I'll try to create new report and subreport based on the same
queries.

The fact that my subreport is in the footer section has nothing to do
with it, does it?

I am at a loss since I have never seen a subreport that didn't respect the
Link Master/Child filtering. I would suggest you rebuild the report and
subreport but it seems you have already tried re-creating a simple example.

--
Duane Hookom
MS Access MVP

lan yu said:
The names didn't come out right. Sorry. Anyway, they are exactly the
same.
"""lan yu ?????(?):
"""
My actual field names are in Russian (I used [Object ID] to make it
more readalbe). Here are the actual values:
Parent report field name: ëÏÄ ÍÕÆÔÙ
Subreport field name: ëÏÄ ÍÕÆÔÙ
Link Child Fields: [ëÏÄ ÍÕÆÔÙ]
Link Master Fields: [ëÏÄ ÍÕÆÔÙ]
(I also tried it without square brackets)
None of the controls are named ëÏÄ ÍÕÆÔÙ.
Looks right to me =)
"""Duane Hookom ÐÉÓÁÌ(Á):
"""
Then go back to the Link Master and Link Child properties to make sure
they
are correct.
 
L

lan yu

I guess I'll try to create new report and subreport based on the same
queries.

The fact that my subreport is in the footer section has nothing to do
with it, does it?

I mean "has it?"
 
D

Duane Hookom

I would expect the subreport to be in the header or footer of the linking
field group.

--
Duane Hookom
MS Access MVP

I guess I'll try to create new report and subreport based on the same
queries.

The fact that my subreport is in the footer section has nothing to do
with it, does it?

I am at a loss since I have never seen a subreport that didn't respect the
Link Master/Child filtering. I would suggest you rebuild the report and
subreport but it seems you have already tried re-creating a simple
example.

--
Duane Hookom
MS Access MVP

The names didn't come out right. Sorry. Anyway, they are exactly the
same.
"""lan yu ?????(?):
"""
My actual field names are in Russian (I used [Object ID] to make it
more readalbe). Here are the actual values:
Parent report field name: ëÏÄ ÍÕÆÔÙ
Subreport field name: ëÏÄ ÍÕÆÔÙ
Link Child Fields: [ëÏÄ ÍÕÆÔÙ]
Link Master Fields: [ëÏÄ ÍÕÆÔÙ]
(I also tried it without square brackets)
None of the controls are named ëÏÄ ÍÕÆÔÙ.
Looks right to me =)
"""Duane Hookom ÐÉÓÁÌ(Á):
"""
Then go back to the Link Master and Link Child properties to make
sure
they
are correct.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top