473,386 Members | 1,867 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,386 software developers and data experts.

Combobox with Description info

I’m creating a database for my class. Currently I have a combo box that lists the genre of a movie. is it possible to put a label next to it that will Tell me what the description of the genre is when i hover over it or have a button that says description and when clicked pulls up a window with the information from the second column in the genre table the descriptions are anywhere form 200-250 chars and doesn’t look nice in a form.
Dec 5 '10 #1

✓ answered by ADezii

  1. Hello Jacob, the first hovering Option is not really a good idea since an Item in the Combo Box would first have to be selected, and then you would be able to hover over the Combo Box to retrieve a Description. This would be done via the MouseMove() Event of the Combo Box. You would also need available space for a Label or Text Box to display the Description.
  2. The second Option would be a little cumbersome, but I came up with a variation that you may like. The basic concept is as follows:
    1. The Combo Box consists of the Genre and Description Fields with the Description Field hidden.
    2. There is a small Description Command Button which by Default is not Visible, and is positioned directly besides the Combo Box.
    3. Once a Value is selected, the Description Combo Box is now made Visible. Clicking on this Button will give a Description of the selected Genre by retrieving this info from the hidden second Column. The descriptive Text is contained within a Message Box whose Character limitation is 1,024, well within your range.
  3. The advantages to this Method as I see it are:
    1. A very small area of Form Real Estate is occupied, just enough for a small Description Command Button.
    2. Again, Form Real Estate is saved in that the Description is contained within a Message Box which is dismissed once the User has read it.
  4. Only you can decide if this approach is practical. I have made a small Demo for you to view in an Attachment to this Post.
  5. Let us know if you need further assistance.

5 3241
ADezii
8,834 Expert 8TB
  1. Hello Jacob, the first hovering Option is not really a good idea since an Item in the Combo Box would first have to be selected, and then you would be able to hover over the Combo Box to retrieve a Description. This would be done via the MouseMove() Event of the Combo Box. You would also need available space for a Label or Text Box to display the Description.
  2. The second Option would be a little cumbersome, but I came up with a variation that you may like. The basic concept is as follows:
    1. The Combo Box consists of the Genre and Description Fields with the Description Field hidden.
    2. There is a small Description Command Button which by Default is not Visible, and is positioned directly besides the Combo Box.
    3. Once a Value is selected, the Description Combo Box is now made Visible. Clicking on this Button will give a Description of the selected Genre by retrieving this info from the hidden second Column. The descriptive Text is contained within a Message Box whose Character limitation is 1,024, well within your range.
  3. The advantages to this Method as I see it are:
    1. A very small area of Form Real Estate is occupied, just enough for a small Description Command Button.
    2. Again, Form Real Estate is saved in that the Description is contained within a Message Box which is dismissed once the User has read it.
  4. Only you can decide if this approach is practical. I have made a small Demo for you to view in an Attachment to this Post.
  5. Let us know if you need further assistance.
Attached Files
File Type: zip Genre.zip (16.9 KB, 124 views)
Dec 5 '10 #2
NeoPa
32,556 Expert Mod 16PB
Jacob, have you considered what you are asking? If you have a ComboBox then only the selected item shows. Why have a Label showing data only when the ComboBox is hovered over? It makes little sense.

On the other hand, it is perfectly possible to show the related description for the selected item in the ComboBox, both when the form is opened as well as when the selection ever changes. Does that sound more sensible?
Dec 5 '10 #3
I really like how you described that. My meaning was something like you posted. but I guess it didn't come out that way.

Currently im trying to figure out how to get the code to work for my database. I have renamed my combobox to what you have and have the description button setup.
my subform is grabbing information out of tblgenre/movie which only has genre and movietitle
The description is in tblgenre with columns of genre description. how would I change the code to grab the description in tblgenre base on what is in the combobox

I have uploaded my final in so you have an idea of how i set everything up. I'm just finishing my database class and I'm not sure wither to continue with my education in database design but I think I would like to.

I have also include what is needed for my final. If any one is willing to look over and give me some pointers i would be grateful
Attached Files
File Type: zip HW9_Jacob_Herzog.zip (65.5 KB, 91 views)
Dec 6 '10 #4
ADezii
8,834 Expert 8TB
how would I change the code to grab the description in tblgenre base on what is in the combobox
You can use the DLookup() Function which is referenced in the Help Files.
Dec 6 '10 #5
NeoPa
32,556 Expert Mod 16PB
Jacob, I'm afraid we don't do questions related to coursework assignments here (Please check the FAQ: Posting Guidelines). I will shortly be removing the second attachment. We also don't support more than one question per thread, so whenever you have a new question, please post it in its own thread.

Posting attachments in your question should generally only ever be done on request. Apart from the trust issues, we don't want to be having to download a database for all the threads we are working on. It's your job to explain the situation clearly in the thread. You will often find that a question that isn't explained in the thread itself will be ignored by many of our members and experts. Too much work; Hard to work with when you have to revisit; Generally the question doesn't make proper sense anyway (as no effort put into explaining it properly).

This all sounds like criticism, and a lot of it. The relevant part though, is to guide you to finding a better way to work on this site. It can help you to get better answers in future questions - which is good for you as well as us.
Dec 6 '10 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Pepehammer | last post by:
Hi everybody! I got a combobox to fill. I want to display some information (Text), but when I select a item, I want to return a number. The info I want to fill in is something like this: ...
2
by: Susan Bricker | last post by:
I went back to read my post and found an error in my description ... here is the post, again, corrected: The following error: "The current field must match the join key '?' in the table that...
7
by: charliewest | last post by:
Using .Net CF, i have created a 2 dimension ArrayList, and "binded" this list to a ComboBox control using the "DataSource" property. I have set the DisplaySource and ValueMember properties as well....
8
by: Dennis D. | last post by:
Preface: I have viewed the combobox control video at Microsoft.at the movies. I want to simulate an HTML combobox as a windows application combobox with 5 to 10 selections in each box. In the...
2
by: Don | last post by:
I've looked high and low for some code that will allow me to have a combobox with a flat borderstyle. I found a few examples, but nothing that was really usable for me. I had the following...
30
by: dbuchanan | last post by:
ComboBox databindng Problem == How the ComboBox is setup and used: My comboBox is populated by a lookup table. The ValueMember is the lookup table's Id and the DisplayMember is the text from a...
7
by: Simon Verona | last post by:
I posted this in dotnet.languages.vb.controls but thought I'd post here as well.. I have a combobox that is bound to a dataview generated from a dataset. The dataset has a single table...
6
by: dbuchanan | last post by:
VS2005 I've been reading all the help I can on the topic (MSDN, other) but I can't make sense of this. Desired behavior; The user is to choose from the displayed list of the databound combobox...
9
by: Cralis | last post by:
I have a List of data objects. I need to populate a ComboBox with the 'Description' field from the objects. I can do that with cmbBx.Items.Add( myObject.Description.ToString() ); myObject has 2...
4
by: mgstlucia | last post by:
I have a Form (frmsOrders) with a subform (frmOrdersDetails Subform). I am trying to automatically fill in the Item Description, Unit and Price when choosing the SKU# from a combobox. I have this...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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
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...

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.