473,850 Members | 2,036 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Missing Values in Drop down Box

I apologize in advance if I'm posting the wrong groups, but I have a
general
UI problem in my Windows apps that I'm wondering how other people may
have
solved. I am using VB.NET to devlope this application.

I can't think of a way to succinctly describe my problem right now, so
I'll
just give you a simple example:
Say I have two tables called tblStaff and tblDivision:
*tblStaff*
StaffID (pkey)
Name
DivisionID (fkey to tblDivision)
*tblDivision*
DivisionID (pkey)
Description
Active
tblDivision has an Active field that specifies whether the Division is
active or inactive. If it's inactive, it's no longer a valid Division
that
can be assigned to a staff record. (We do this rather than deleting
the
record, so we don't screw up our referential integrity for staff who
were
already assigned to that Division.)

My UI for a staff maintenance page would include a Name field and a
drop
down box for Division that is populated with the active Divisions in
tblDivision.

My problem arises when I'm trying to display the information for a
staff
(say, Bob Thomas) that had previously been set up with a valid Division

(say, ABC) that was subsequently set to inactive. If I'm only
populating
the drop down box with active Divisions, ABC will no longer show up in
the
drop down box, so if I try to look at Bob Thomas' record, it will
appear as
if he had no Division set, when in actuality he does and I'd like to
see
that.

I've seen reference to a solution people used in Access where they put
a
text box directly over the combo box, leaving the arrow portion of the
combo
box visible. To use my example, they would then display "ABC" in the
text
box and all the active Divisions in the combo box. Then, whenever the
user
tried to use the text box it would throw control to the combo box, so
the
user thinks they're just using a simple combo box.

So, I imagine lots of people have run into this issue. Anyone have any
other
clever solutions they'd like to share?

Thanks,
Big D

Feb 10 '06 #1
1 1991
It's Shroff wrote:
I apologize in advance if I'm posting the wrong groups, but I have a
general
UI problem in my Windows apps that I'm wondering how other people may
have
solved. I am using VB.NET to devlope this application.


This group is doubly off-topic for your post: ASP has nothing to do with VB,
and classic ASP (which this group covers) has nothing to do with .Net.

You will likely receive better/quicker help by posting to an appropriate
group such as microsoft.publi c.dotnet.langua ges.vb or one of the
windowsforms groups.

There is no reason to apologize for this. Nobody is offended by your posting
this message here. We just want you to get help as efficiently as possible.

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Feb 11 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2259
by: Rob Wire | last post by:
For the code below, how could I add an item in the drop down lists for both company and location to be an "All" selection that would send to the stored proc. spRptAttachments a value of "%" so that it would bring back all attachments at all companies or all locations at a company? Thank you, Rob. Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load If Not IsPostBack Then
2
12371
by: macyp | last post by:
I have to pass values from one aspx page to another. The controls I have in the first page are: a textbox, 3 drop down lists, and 2 check boxes, and a submit button. It is a search page, and the users need not enter values in all the controls. they can leave the textbox blank, and select values from one drop down, or any other combinations. I am trying to pass values with the help of session variables. But I have multiple if else...
19
9095
by: nazgulero | last post by:
Hello all, I wonder if anybody can give me a hint about what I have to do to get this working: I am creating a drop down box using the script below. The result is two text fields; now I want to pass those values, which come from the drop down box, to the next page. The next page should then simply look like this:
6
2241
by: John | last post by:
I have a drop down on my form and I need all the values in that drop down and pass to a stored procedure, how can I get the values of the drop down and pass them all to my stored procedure call?
2
1807
by: Jim Gregg | last post by:
Hello all, I am faced with some logic that I am unsure how to handle. Imagine that I am running a WMI query and I am outputting the data into a dynamically created ASP table control. Here is my code that does this. I have left out the portion that connects to my server and the query, but this should be enough to show what I am doing. Basically it is a web page that queries SMS for clients in a certain collection, then outputs the name...
4
1553
by: Mike | last post by:
I'm creating a new asp.net (c#) web app and on my HTML page some values are missing> such as: when i do: <td > when i hit spacebar I dont' see, width, bgcolor, border, etc in the drop down. I only see around 10 or so values in the drop down. What's missing in my install? I can still type them but I get
4
10693
by: Pasquale | last post by:
I am attempting to populate a few select drop down menus from the selection of the first drop down. I am using ajax to submit data via a PHP GET and from the response populate the other drop down menus. I figured out how to get it to do so for more than one drop down, but I am getting the following error below. This was working fine until I tried to populate more than one other drop down menu. Any idea why the SELECT object isn't being...
1
2360
by: bytenut | last post by:
I would like to display two field values in a combo after selecting from the list items... i.e. my drop-down shows two fields from a lookup, but when I select the item, only the first field value is shown in the combo text area (at the top)... (bound field is invisible) e.g. Currently seeing (standard behavior) drop-down | 1 drop-down | 2 drop-down | 3
3
1765
by: phpmagesh | last post by:
Hi, I have a drop down in my page, what i will do with that drop down is i have a table in my database, which have values and this table will refer that ID and pick the name of that values and display in the drop down box. my table have ID, name, quantity, stock and date created. now what i want to do is when the stock is <=0 the drop down should add sold out in front of the attributes. Ex:
0
9744
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10670
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9503
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7900
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7072
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5931
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4547
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4142
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3178
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.