chrisjames25
Registered User.
- Local time
- Today, 14:01
- Joined
- Dec 1, 2014
- Messages
- 404
Hi. Business quiet again so plodding along with my database.
Trying to do a DCount in vba but having issues with error that keeps coming up.
Background - initially i had a form with three combos. Category - genus - variety. Once i chose category it would run query to limit options in genus and then i would choose a genus that would limit options in variety.
I want to tweak this to save time.
What i want is to choose Category then jump straight to variety and choose a variety form the list that has been limited based on Category selected. This has been achieved sono problems there. When i choose the variety I want it to do a dcount to check that there is only 1 varitety name within that category. If there is i want it to autopopulate the genus cbo. However very occasionally there will be two variety names the same so in that instant i want it to not autopopulate the genus cbo. Instead i want it to alert me to the issue and ask me to please select the correct genus from combobox.
HOpe that makes sense. If not happy to elaborate more.
Trying to do a DCount in vba but having issues with error that keeps coming up.
Background - initially i had a form with three combos. Category - genus - variety. Once i chose category it would run query to limit options in genus and then i would choose a genus that would limit options in variety.
I want to tweak this to save time.
What i want is to choose Category then jump straight to variety and choose a variety form the list that has been limited based on Category selected. This has been achieved sono problems there. When i choose the variety I want it to do a dcount to check that there is only 1 varitety name within that category. If there is i want it to autopopulate the genus cbo. However very occasionally there will be two variety names the same so in that instant i want it to not autopopulate the genus cbo. Instead i want it to alert me to the issue and ask me to please select the correct genus from combobox.
HOpe that makes sense. If not happy to elaborate more.