monkeytunes
Serf of the Jungle
- Local time
- Yesterday, 16:27
- Joined
- Jun 8, 2004
- Messages
- 120
Oh, buddays.
I have a hefty database with a series of full-size forms which act as navigational menus. The VicePrez has asked for some dropdown menus which will further open particular forms (to cut back on the number of buttons per screen).
I tried using the combo-box dropdown wizard to put a dropdown list on "frmMainMenu" with my own values entered, which I then applied to some VB code like this:
Of course, none of this works (or else I wouldn't be posting).
Dropdowns have always kind of mystified me, and this one is no different - While my values show up just fine in the dropdown, navigating to one of them and clicking it does nothing; the dropdown remains blank. Hence, my VB code doesn't even get triggered, let alone execute. (I'm sure when/if I do manage to trigger it, I'll find plenty more problems.)
After searching around the forum, I suspect I might be completely on the wrong track. I also suspect that the answer is something ridiculously easy and obvious, and I should just wear a big cap that says "clueless n00b".
Many thanks if you point me in the right direction! (Examples would be outta-sight-good, too...hint hint)
-monkey
I have a hefty database with a series of full-size forms which act as navigational menus. The VicePrez has asked for some dropdown menus which will further open particular forms (to cut back on the number of buttons per screen).
I tried using the combo-box dropdown wizard to put a dropdown list on "frmMainMenu" with my own values entered, which I then applied to some VB code like this:
Code:
Private Sub drpProjectMenu_AfterUpdate()
If Me.drpProjectMenu.Value = "Open All Projects" Then
DoCmd.OpenForm ("frmProjectFormAll")
ElseIf Me.drpProjectMenu.Value = "Open Projects by Project#" Then
DoCmd.OpenForm ("frmProjectFormByProjectNo")
ElseIf Me.drpProjectMenu.Value = "Open Projects by Manager" Then
DoCmd.OpenForm ("frmProjectFormByManager")
Else
DoCmd.OpenForm ("frmMainMenu")
End If
End Sub
Of course, none of this works (or else I wouldn't be posting).
Dropdowns have always kind of mystified me, and this one is no different - While my values show up just fine in the dropdown, navigating to one of them and clicking it does nothing; the dropdown remains blank. Hence, my VB code doesn't even get triggered, let alone execute. (I'm sure when/if I do manage to trigger it, I'll find plenty more problems.)
After searching around the forum, I suspect I might be completely on the wrong track. I also suspect that the answer is something ridiculously easy and obvious, and I should just wear a big cap that says "clueless n00b".



Many thanks if you point me in the right direction! (Examples would be outta-sight-good, too...hint hint)
-monkey