PC Review


Reply
Thread Tools Rate Thread

ComboBox "Not In List" Warning

 
 
collis47@hotmail.com
Guest
Posts: n/a
 
      24th Jan 2007
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

 
Reply With Quote
 
 
 
 
NickHK
Guest
Posts: n/a
 
      24th Jan 2007
Can you not just set the combobox.Style to fmStyleDropDownList ?
Then the entry must be in the list.

NickHK

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>



 
Reply With Quote
 
collis47@hotmail.com
Guest
Posts: n/a
 
      24th Jan 2007

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
On Jan 24, 10:50 am, "NickHK" <TungChe...@Invalid.com> wrote:
> Can you not just set the combobox.Style to fmStyleDropDownList ?
> Then the entry must be in the list.
>
> NickHK
>
> <colli...@hotmail.com> wrote in messagenews:(E-Mail Removed)...
>
>
>
> > 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- Hide quoted text -- Show quoted text -


 
Reply With Quote
 
NickHK
Guest
Posts: n/a
 
      24th Jan 2007
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

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> 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
> On Jan 24, 10:50 am, "NickHK" <TungChe...@Invalid.com> wrote:
> > Can you not just set the combobox.Style to fmStyleDropDownList ?
> > Then the entry must be in the list.
> >
> > NickHK
> >
> > <colli...@hotmail.com> wrote in

messagenews:(E-Mail Removed)...
> >
> >
> >
> > > 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- Hide quoted text -- Show

quoted text -
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding a blank row, or "All" to top of Combobox list alfaista Microsoft Access Form Coding 2 12th Mar 2010 12:25 PM
Combobox: adding an entry to the "to do list" table jake Microsoft Access Form Coding 4 4th Feb 2005 04:46 AM
license.cfg "credit card" "Microsoft Windows Licensing" "Register online with Microsoft" "Warning! The license file" Jim Kelly Windows XP General 4 13th Sep 2004 06:32 AM
Combobox refuses to get "nothing" value, even though it's not required, allowed to get zero lengths and not limited to list. Amir Microsoft Access Form Coding 2 8th Aug 2004 03:03 AM
Automatic drop down of the "list"-portion of a combobox Magnus Microsoft Dot NET Compact Framework 2 12th Jan 2004 09:15 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:47 AM.