N
Need_Help
I am a novice and I am trying to create a contact databse to track clients
and RFPs. I have several tables linked with a primary key in what I call
General Account Information table and a foreign key that runs throughout the
other tables. The primary key is AccountID (autonumber in General Account
Information and number in other tables). The hierarchy is the general
acccount information, followed by subdivisions (departments) with another
table that lists contacts of this department, followed by agencies within
these departments and the contacts of the agencies. If you can invision the
relationship table I have General Account information on the righthand side
with the lower levels running to the right and one-to-many relationships from
left to right.
I have created a main form that allows me to enter the general account
information and have included a command button that leads me to the
"department information" form that has a subform for the department contacts.
I have used the DoCmd.OpenForm
"DepartmentInformation",,,"[SomeID]=Forms![GeneralAccountInformation]![SomeID]"
to try and link these forms. However I have been unable to enter new data in
my "DepartmentInformation" Form because I get the error message "not a
related record in GeneralAccountInformation table" What am I doing wrong?
and RFPs. I have several tables linked with a primary key in what I call
General Account Information table and a foreign key that runs throughout the
other tables. The primary key is AccountID (autonumber in General Account
Information and number in other tables). The hierarchy is the general
acccount information, followed by subdivisions (departments) with another
table that lists contacts of this department, followed by agencies within
these departments and the contacts of the agencies. If you can invision the
relationship table I have General Account information on the righthand side
with the lower levels running to the right and one-to-many relationships from
left to right.
I have created a main form that allows me to enter the general account
information and have included a command button that leads me to the
"department information" form that has a subform for the department contacts.
I have used the DoCmd.OpenForm
"DepartmentInformation",,,"[SomeID]=Forms![GeneralAccountInformation]![SomeID]"
to try and link these forms. However I have been unable to enter new data in
my "DepartmentInformation" Form because I get the error message "not a
related record in GeneralAccountInformation table" What am I doing wrong?