Hi friends,
Before I have to toss on the nomex suit, I am, yes, using a table in a one to one relationship. It's beacause for ean record in tblJobs, I need to store a little over 400 pieces of information, so I split it between two tables.
Well, yesterday, I turned my kiddies loose on the live database, and tonight I am, of course, fixing it. Nothing like a little real world testing, eh?
I have an issue - If I turn on referential integrity in the relationship between tblJobs and tblJobVarious, no problem. But if I turn on "cascade update related fields" it errors, saying I have error 3409 -
"
Invalid field definition <name> in definition of index or relationship. (Error 3409)
Possible causes:
The field name you have specified might be misspelled. Check the spelling of the field name.
The field type you are using is a Memo or OLE Object, which cannot be indexed.
"
So the field name is JobID in both tables. I have a PK in every table, and a FK to tblJobs.JobID in all relevant tables. So I';m reasonably sure I'm spelling it right.
Neither field is a Memo or OLE field. Both are number, long integer.
Here's my issue - with referential integrity turned on, if a user enters data into a new record in my frmJobs, it will not allow them to save the record, as there is no related record in tblJobVarious.
I suppose my ultimate question is, would referential integrity auto-create that record, or do I need to code it somehow in the frmJobs events?
And, the requisite follow-up, how would I resolve this problem as quickly as possible?
TIA, friends, always a wealth of knowledge here.
Regards,
Nedstar1
Before I have to toss on the nomex suit, I am, yes, using a table in a one to one relationship. It's beacause for ean record in tblJobs, I need to store a little over 400 pieces of information, so I split it between two tables.
Well, yesterday, I turned my kiddies loose on the live database, and tonight I am, of course, fixing it. Nothing like a little real world testing, eh?
I have an issue - If I turn on referential integrity in the relationship between tblJobs and tblJobVarious, no problem. But if I turn on "cascade update related fields" it errors, saying I have error 3409 -
"
Invalid field definition <name> in definition of index or relationship. (Error 3409)
Possible causes:
The field name you have specified might be misspelled. Check the spelling of the field name.
The field type you are using is a Memo or OLE Object, which cannot be indexed.
"
So the field name is JobID in both tables. I have a PK in every table, and a FK to tblJobs.JobID in all relevant tables. So I';m reasonably sure I'm spelling it right.
Neither field is a Memo or OLE field. Both are number, long integer.
Here's my issue - with referential integrity turned on, if a user enters data into a new record in my frmJobs, it will not allow them to save the record, as there is no related record in tblJobVarious.
I suppose my ultimate question is, would referential integrity auto-create that record, or do I need to code it somehow in the frmJobs events?
And, the requisite follow-up, how would I resolve this problem as quickly as possible?
TIA, friends, always a wealth of knowledge here.
Regards,
Nedstar1