the PK for the Products table is ProductID (auto number)
the PK for the Charges table is ChargeID (auto number)
Relationship Type is One-To-One
You will have to go out of your way to create a 1:1 relationship with this
setup...
Table/Query:tblProduct (ProductID) – Related
Table:tblCharge (ChargeID)
Oh, hold on: you've tried to make a relationship between two autonumber PKs
-- I'm afraid this is never going to work because (by definition) you
cannot control what value goes in an autonumber field. Just delete this
relationship and start again.
2)
There is the ProductID (number and Long Integer) in the
tblCharge but the value of that field seems to be 0 all
the time.
Well, it needs to be the value of a valid tblProduct.ProductID, doesn't it?
THIS is what the relationship should be based on: tblProduct.ProductID ->
tblCharge.ProductID. The plan is to know which product each charge relates
to.
Oh, and another nastiness is that Access will default the DefaultValue of
numeric fields to zero, when it should be null. It will help your
application no end if you go back to table design and delete the zero for
the DefaultValue for the tblCharge.ProductID.
Ive been living with this by opening tblCharge and adding
a new record straight to the tblCharge.
Well, you need some way of making new tblCharge records: one is to have a
Charges form, with a method of picking which product they relate to;
another is to have a Products form with a subform showing details from the
Charges table.
By the way, all this is possitted on you actually wanting a 1:many
relationship between Charges and Products. If you really do want a 1:1
relationship... Why?
All the best
Tim F