M
Matt
I have a question about a problem I have been having with one on my
database's forms.
My form consists of one main form with two subforms. Subform1 is a
continuous form which lists the names of individuals. Subform2 is a
single form that lists details about the indivduals in subform1 (phone
numbers, addresses, etc.) Both subforms contain information from the
same table, in this case tbl_People. For background information,
tbl_People has a one-to-many relationship with tbl_Assignments, which
tracks a person's assignments.
Now I have the two forms set up so that I click on a record in the
subform1 and that individual's information appears on subform2.
Thanks to Treeless on UtterAccess, I was able to accomplish this by
creating an unbound text box in the main form that contains the value
of the primary key from subform1. The primary key in subform2 links
back to the text box in the main form.
Everything was working fine, until I added some VBA code to subform2.
I added some DCOUNT statements that use the primary key of tbl_People
to search another table, tbl_Assignments, for matching records. Now,
whenever I switch records by clicking on a record in subform1, Access
freezes up. The lower left hand corner of the screen reads
"Calculating..." and the mouse pointer turns into an hour glass, and
the program stops responding.
Once this problem is solved, my database will be more or less
complete. Is there anyone who knows what I might be wrong?
Thanks.
database's forms.
My form consists of one main form with two subforms. Subform1 is a
continuous form which lists the names of individuals. Subform2 is a
single form that lists details about the indivduals in subform1 (phone
numbers, addresses, etc.) Both subforms contain information from the
same table, in this case tbl_People. For background information,
tbl_People has a one-to-many relationship with tbl_Assignments, which
tracks a person's assignments.
Now I have the two forms set up so that I click on a record in the
subform1 and that individual's information appears on subform2.
Thanks to Treeless on UtterAccess, I was able to accomplish this by
creating an unbound text box in the main form that contains the value
of the primary key from subform1. The primary key in subform2 links
back to the text box in the main form.
Everything was working fine, until I added some VBA code to subform2.
I added some DCOUNT statements that use the primary key of tbl_People
to search another table, tbl_Assignments, for matching records. Now,
whenever I switch records by clicking on a record in subform1, Access
freezes up. The lower left hand corner of the screen reads
"Calculating..." and the mouse pointer turns into an hour glass, and
the program stops responding.
Once this problem is solved, my database will be more or less
complete. Is there anyone who knows what I might be wrong?
Thanks.