T
TravelingHT
Here is where I currently am
The record source for the combo box Pets in the Form frmPetsAtVisit is a
query based on my tlbPets.
frmPetsAtVisit is a subform of frmVisits, which is a subform of frmlTrips
(the misspell of frmlTrips is intentional)
Both tables tblTrips and tblPets has the same foreign key CustomerID
The query has 3 fields in it PetID PetName and CustomerID:
In the Criteria Row of the CustomerID colum I have:
[Forms]![frmlTrips]![CustomerID] (the misspell of frmlTrips is
intentional)
As built for me by the expression builder by going through and choosing the
form and then the control.
This is not working.
The customerID field in the table we are trying to reference is a drop down
list and actually visually shows the customers name but the bound column is
the customerID value i.e.
This value being a foreign key value for the table Customer but is in the
table Trips
In the QUERY
Do I need to put an “=†before the [Forms] in the Criteria Row? I have tried
this no succcess.
If I add the [Form] after the last form name I get the message essentially
telling me that the computer can not find what I am telling it to find.
Is there something to do with primary keys that is causing a problem?
Do I need to add “on update†or some other action to the drop down list
where the pets name is to be populated.
Should I be messing with the query properties "Unique Values" or "Unique
Records"
Thank you again for all your kind help. I feel as thought I am on the edge
of understanding, but I am rather disappointed with Access2003 inside out. I
have spent a lot of time on that book and something as important as
referencing a value in a field of a control on a form and using the value in
a query is not even glimpsed at there, unless I have missed it. It's not such
a bad book.
The record source for the combo box Pets in the Form frmPetsAtVisit is a
query based on my tlbPets.
frmPetsAtVisit is a subform of frmVisits, which is a subform of frmlTrips
(the misspell of frmlTrips is intentional)
Both tables tblTrips and tblPets has the same foreign key CustomerID
The query has 3 fields in it PetID PetName and CustomerID:
In the Criteria Row of the CustomerID colum I have:
[Forms]![frmlTrips]![CustomerID] (the misspell of frmlTrips is
intentional)
As built for me by the expression builder by going through and choosing the
form and then the control.
This is not working.
The customerID field in the table we are trying to reference is a drop down
list and actually visually shows the customers name but the bound column is
the customerID value i.e.
This value being a foreign key value for the table Customer but is in the
table Trips
In the QUERY
Do I need to put an “=†before the [Forms] in the Criteria Row? I have tried
this no succcess.
If I add the [Form] after the last form name I get the message essentially
telling me that the computer can not find what I am telling it to find.
Is there something to do with primary keys that is causing a problem?
Do I need to add “on update†or some other action to the drop down list
where the pets name is to be populated.
Should I be messing with the query properties "Unique Values" or "Unique
Records"
Thank you again for all your kind help. I feel as thought I am on the edge
of understanding, but I am rather disappointed with Access2003 inside out. I
have spent a lot of time on that book and something as important as
referencing a value in a field of a control on a form and using the value in
a query is not even glimpsed at there, unless I have missed it. It's not such
a bad book.