Thanks,
It looks to me as if you need at least a one-to-one relationship between
tblA and tblB, using both the CompanyID and DataDate fields.
You should also include both fields in the join of your query.
I cant make relationship between tblA and tblB. I got message when tried to
include Enforce referential integrity : "Invalid field definition in tblA in
definition of index or relationship."
I have tables with fields:
tblCompany
CompanyID (primary key autonumber)
CompanyName, Address, ...
tblA
ADataID (primary key autonumber)
CompanyID
DateA
Field1, Field2, ...
tblB
BDataID (primary key autonumber)
CompanyID
DateB
Field100, Field101, ,,,
Relationships are:
tblCompany and tblA (one to many, CompanyID is link)
tblCompany and tblB (one to many, CompanyID is link)
tblA and tblB ONE TO ONE, but I dont know what fields to link between
these tables.
I have tried to include primary key fields from tblA and tblB in
relationship, but cant enforce referential integrity.
I can link tblA and tblB without enforce referential integrity (whether I
put only primary keys from tblA or tblB or include CompanyID and field DateA
or DateB).
Do you know where is mistake?
Thanks for your time, Marco