Bladerunner
Registered User.
- Local time
- Today, 04:59
- Joined
- Feb 11, 2013
- Messages
- 1,799
I have a navigation form where I use combo boxes to pick an AnimalID and then fill in the subform based for that animals information.
The AnimalID ComboBox (cboAnimalID) has a row source like this:
SELECT [tblAnimal Setup].AnimalSetupID, [tblAnimal Setup].AnimalID, [tblAnimal Setup].AnimalType FROM [tblAnimal Setup], [tblAnimal Type] WHERE ((([tblAnimal Setup].AnimalType)=[Forms]![NavigationForm]![cboanimaltype])) ORDER BY (animalID);
p.s. these cbo(s) are in the detail area of the navigation form above the subform(s) area.
The AnimalType ComboBox (cboanimaltype) has a row source like this:
SELECT [tblAnimal Type].AnimalTypeID, [tblAnimal Type].AnimalType FROM [tblAnimal Type] ORDER BY [AnimalType];
When I run the navigation form, It pulls up the animal types and allows me to pick one. This part is ok.
However when I pulldown the AnimalID list (cboanimalID), It gives me a box asking for [forms!NavigationForms!cboAnimaltype]. If I put in an animalID lets say the #5 ( this number corresponds to the animal type I picked in the cboanimaltype), it pulls up the data correctly. It just will not do it itself without asking for the data I have already put in. The cboanimalID does not seem to recognize cboAnimaltype!
anyone got any ideas. I have tried everything, or at least according to my limited abilities with Access.
The AnimalID ComboBox (cboAnimalID) has a row source like this:
SELECT [tblAnimal Setup].AnimalSetupID, [tblAnimal Setup].AnimalID, [tblAnimal Setup].AnimalType FROM [tblAnimal Setup], [tblAnimal Type] WHERE ((([tblAnimal Setup].AnimalType)=[Forms]![NavigationForm]![cboanimaltype])) ORDER BY (animalID);
p.s. these cbo(s) are in the detail area of the navigation form above the subform(s) area.
The AnimalType ComboBox (cboanimaltype) has a row source like this:
SELECT [tblAnimal Type].AnimalTypeID, [tblAnimal Type].AnimalType FROM [tblAnimal Type] ORDER BY [AnimalType];
When I run the navigation form, It pulls up the animal types and allows me to pick one. This part is ok.
However when I pulldown the AnimalID list (cboanimalID), It gives me a box asking for [forms!NavigationForms!cboAnimaltype]. If I put in an animalID lets say the #5 ( this number corresponds to the animal type I picked in the cboanimaltype), it pulls up the data correctly. It just will not do it itself without asking for the data I have already put in. The cboanimalID does not seem to recognize cboAnimaltype!
anyone got any ideas. I have tried everything, or at least according to my limited abilities with Access.
Last edited: