473,385 Members | 1,582 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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 1968
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.public.dotnet.languages.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
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...
2
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...
19
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...
6
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
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...
4
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....
4
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...
1
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...
3
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...

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.