Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / January 2007

Tip: Looking for answers? Try searching our database.

ComboBox "Not In List" Warning

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
collis47@hotmail.com - 24 Jan 2007 01:41 GMT
Ok I have had a look arround, and nothing seems to be what i need, and
what seems like i need doesnt make sense.

What I require is code so that if an entry that is put into a combo box
is not in the "rowsource" list then I would like a message box to
appear to warn the data entry person,

my rowsource is a range called "SerialMaster" and my combobox is called
"ComboSerialNo"

Any help would be greatly apprechiated
NickHK - 24 Jan 2007 01:50 GMT
Can you not just set the combobox.Style to fmStyleDropDownList ?
Then the entry must be in the list.

NickHK

> Ok I have had a look arround, and nothing seems to be what i need, and
> what seems like i need doesnt make sense.
[quoted text clipped - 7 lines]
>
> Any help would be greatly apprechiated
collis47@hotmail.com - 24 Jan 2007 02:06 GMT
I could, but that would not work with the process,

What I want is if the entry is not in the list for it to warn the data
entry person that they have to add this item into the other sheet, but
i still want them to be able to finish there current entry before going
to add the item,

eventually i want if the item is not in the list then the entry will
continue , and when it is entered with the ok button then it open up
the "FormAdAsset" and put the new serial number into the "TextSerialNo"
field so that the asset can be added

so really the msgbox warning is just a interm until i have the time to
write the code for what i really want it to do, which will just be an
extension to the warning code im after

make sense?

cheers
> Can you not just set the combobox.Style to fmStyleDropDownList ?
> Then the entry must be in the list.
[quoted text clipped - 14 lines]
>
> > Any help would be greatly apprechiated- Hide quoted text -- Show quoted text -
NickHK - 24 Jan 2007 04:41 GMT
Why not provide a Search Text box then, as you neither wish to limit to
existing entries nor allow new entry unconditionally.
The entry in the text box can be matched to the WS list (VLOOKUP/MATCH etc)
or the combobox.list items, during the TextBox_Change event.

NickHK

> I could, but that would not work with the process,
>
[quoted text clipped - 33 lines]
> >
> > > Any help would be greatly apprechiated- Hide quoted text -- Show quoted text -
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.