G
Guest
I have a once-working Dlookup that has decided to quit. Here are the
particulars:
tblTransactions
LinkField (PK, autonumber)
StudentName
tblHistory
LinkField
Year (ex. 2003)
Class (ex. “P1â€)
Grade (ex. “Sâ€)
tblTransactions and tblHistory are related in a one-to-many relationship
based on LinkField.
QueryCombined (based on tblHistory) with 3 fields:
LinkField
Year
Combined (created by combining Class and Grade, ex. “P1Sâ€)
In a report based on tblTransactions, I have in the detail area the following:
StudentName
LinkField (though it’s not visible)
A text box representing a year, named “Year1â€
A calculated Control with the following Control Source:
=DLookUp("[Combined]","CombinedQuery","[LinkField]=[LinkField]" And
"[Year]=[Year1]")
It is pulling up a Combined field from the query, but I get the same field
for every record.
What am I missing?
particulars:
tblTransactions
LinkField (PK, autonumber)
StudentName
tblHistory
LinkField
Year (ex. 2003)
Class (ex. “P1â€)
Grade (ex. “Sâ€)
tblTransactions and tblHistory are related in a one-to-many relationship
based on LinkField.
QueryCombined (based on tblHistory) with 3 fields:
LinkField
Year
Combined (created by combining Class and Grade, ex. “P1Sâ€)
In a report based on tblTransactions, I have in the detail area the following:
StudentName
LinkField (though it’s not visible)
A text box representing a year, named “Year1â€
A calculated Control with the following Control Source:
=DLookUp("[Combined]","CombinedQuery","[LinkField]=[LinkField]" And
"[Year]=[Year1]")
It is pulling up a Combined field from the query, but I get the same field
for every record.
What am I missing?