I am having emence trouble, I have added the post to explain what I have been
trying to do.:
I want to populate the Pet ID, (which brings up the pets name) in a combo
box in a sub sub form, with only pets owned by the customer who is the focus
of the main form. (See the bottom of the screen to see the structure of the
tables.)
The combobox for Pet ID is in a sub form of a sub form of the main form Trips.
The main form is called Trips and has the foreign key CutomerID.
The master/child fields linking the forms are TripID- Visit ID :
VisitID-PetsAtVisitID
The pet table (from which I am trying to populate the combo box) in the sub
sub form has the foreign key CustomerID but from the main form to the sub sub
form I have different foreign keys and doing the linking.
1.I am not sure if I should be using a query or an expression.
2. I am assuming I should be putting an expression in the properties of the
combobox of the form “PetsAtVisitâ€.
2a. If I am to use an expression in the properties of the combobox, under
what property heading should I put my expression i.e. “Row Source†etc.
----- Customers ------
|............................|
|.........................Trips -Main Form From (Based on table Trips)
|............................|
|.........................Visits - SubForm (Based on table
Visits)
|.............................|
Pets....................PetsAtVisit - Sub Sub Form (Based on table
PetsAtVisits)
Some of my customers will show animals so not all the pets will be there all
the time.
Also as an asside some(or probably all) will die. So I have added a check
box "Pets Decieced" But I will have to work that one out.
END OF EXAMPLE OF WHAT I AM WORKING ON.
So I tried unsucessuflly, I still am pulling my hair out on this one, an
expression and it did not work, so I removed the epxression and it still did
not work so I removed the control on the form and then went to the control
list and repopluated that control back onto the form and it worked.
I see the general nature of my post and difficulty in fixing the problem, if
it acutally exists!
Thansk for your help. I will check my settings.
--
Anthony Williams
Histotech Exchange LLC
19 Whitmore St.
Lexington, VA 24450
[email protected]