CJBIRKIN
Drink!
- Local time
- Today, 16:37
- Joined
- May 10, 2002
- Messages
- 256
Hi
Not sure what's going on here.
I have a tabular form with 2 comboxes CmboX and CmboY.
CmboX gets its row source from TBL_X and CmboY from Tbl_Y.
In the rowsource query for the CmboY i have put the criteria that if the value in cmboX is <=3 then display only records 1,2 and 3 from TBL_Y.
Then on the afterupdate event of CmboX i have told it to requery CmboY.
There are 2 problems
1 (which i don't think is solvable) all of the cmboY's are requeried not just the record i am working on. This just means it's going to a tinsy bit slower.
2 After the requery no data is displayed in the cmboY's for the previously completed records that don't have the same value as the one thats being created!.
The controlsource and the rowsource are 2 seperate things so why should this be?
Any clues?
Cheers
Chris
Not sure what's going on here.
I have a tabular form with 2 comboxes CmboX and CmboY.
CmboX gets its row source from TBL_X and CmboY from Tbl_Y.
In the rowsource query for the CmboY i have put the criteria that if the value in cmboX is <=3 then display only records 1,2 and 3 from TBL_Y.
Then on the afterupdate event of CmboX i have told it to requery CmboY.
There are 2 problems
1 (which i don't think is solvable) all of the cmboY's are requeried not just the record i am working on. This just means it's going to a tinsy bit slower.
2 After the requery no data is displayed in the cmboY's for the previously completed records that don't have the same value as the one thats being created!.
The controlsource and the rowsource are 2 seperate things so why should this be?
Any clues?
Cheers
Chris
Last edited: