MarkGibson
Programmer
I get two errors when I try to add new records via a subforms on it:
a) "The value you entered isn't valid for this field. For example, you may have entered text in a numeric field, or a number that is larger than the FieldSize setting permits." This occurs when I type a first character in any visible text field; after I click OK, the character appears. It seems to occur when Access tries to fill in the Long Integer Link field value for AddrClientID (see details below) as it creates a new record.
b) When I try to move to the next record, I am told that the Link field AddrClientID cannot be left blank because it is a required field. In fact I have set the property to be required, because it is the link, and always before Access filled this in automatically. If the field is not required, then the link field is left blank.
(If I type in a record manually in tblAddresses, including an existing OR a non-existent Client ID in the AddrClientID field, when I open the main form (frmMain) I get an error message saying that the expression is too complicated to be calculated...please simplify, and the subform is whited out).
Details:
I have created tblClient with an autonumber key field called ClientID. I have created a form frmMain that has tblClient as its Source Object (I have also tried using Querybuilder, and had "SELECT * FROM tblClients;" as the source).
Onto a Tab Control I have placed a subform named sfrmAddresses, which accesses tblAddresses (autonumber key is AddrID, with a Long Iinteger Link field called AddrClientID). sfrmAddresses has tblAddresses as its Source Object (I have tried the query route here also).
The Master Link field is ClientID and the Child Link field is AddrClientID.
I am perplexed...to say the least! Microsoft KnowledgeBase says nothing on this that I can find.
a) "The value you entered isn't valid for this field. For example, you may have entered text in a numeric field, or a number that is larger than the FieldSize setting permits." This occurs when I type a first character in any visible text field; after I click OK, the character appears. It seems to occur when Access tries to fill in the Long Integer Link field value for AddrClientID (see details below) as it creates a new record.
b) When I try to move to the next record, I am told that the Link field AddrClientID cannot be left blank because it is a required field. In fact I have set the property to be required, because it is the link, and always before Access filled this in automatically. If the field is not required, then the link field is left blank.
(If I type in a record manually in tblAddresses, including an existing OR a non-existent Client ID in the AddrClientID field, when I open the main form (frmMain) I get an error message saying that the expression is too complicated to be calculated...please simplify, and the subform is whited out).
Details:
I have created tblClient with an autonumber key field called ClientID. I have created a form frmMain that has tblClient as its Source Object (I have also tried using Querybuilder, and had "SELECT * FROM tblClients;" as the source).
Onto a Tab Control I have placed a subform named sfrmAddresses, which accesses tblAddresses (autonumber key is AddrID, with a Long Iinteger Link field called AddrClientID). sfrmAddresses has tblAddresses as its Source Object (I have tried the query route here also).
The Master Link field is ClientID and the Child Link field is AddrClientID.
I am perplexed...to say the least! Microsoft KnowledgeBase says nothing on this that I can find.