i get:
Run-time error '-2117467259(50004005)':
Method 'Text; of object'_CommandBarComboBox' failed
when i try to execute this:
Public Function CmdBarChangeText()
Dim cbr As CommandBar, Dim cbrCtl As CommandBarControl ' Set a reference to the Access menu bar
Set cbr = CommandBars(MyCommandBarName) ' Set a reference to the Print Control on the Menu Bar
Set cbrCtl = cbr.Controls("My Number"
cbrCtl.TooltipText = "successfully changed" ' this works
cbrCtl.Text = "Something Else" 'This causes above error
Set cbrCtl = Nothing
Set cbr = Nothing
End Function
is my problem utilizing a controlcombobox in the first place? all that is in the field is the number/year anniversary of subject
MMFL-
Mavericks Fan For Life
Run-time error '-2117467259(50004005)':
Method 'Text; of object'_CommandBarComboBox' failed
when i try to execute this:
Public Function CmdBarChangeText()
Dim cbr As CommandBar, Dim cbrCtl As CommandBarControl ' Set a reference to the Access menu bar
Set cbr = CommandBars(MyCommandBarName) ' Set a reference to the Print Control on the Menu Bar
Set cbrCtl = cbr.Controls("My Number"
cbrCtl.TooltipText = "successfully changed" ' this works
cbrCtl.Text = "Something Else" 'This causes above error
Set cbrCtl = Nothing
Set cbr = Nothing
End Function
is my problem utilizing a controlcombobox in the first place? all that is in the field is the number/year anniversary of subject
MMFL-
Mavericks Fan For Life