473,480 Members | 1,884 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Have a textbox appear based on Combobox selection

1 New Member
Hi to everyone!
This is my first post here so please don't shout at me!
My question is the following:
I have a table in which there is a field named "Resolution".It's a combo box and has three values "A", "B" and "C" (Note that i entered the values.There isn't any table connected to this table with the above values in it).
When i choose "C",from the drop down menu, then i want a new field to come up with new values in it.
Example:
Field:
Good Movie? "Yes" , "No"
When i choose "No" i want a new field to appear, for example:
Why Not ? "Bad Screenplay" , "Bad Direction" ,etc!

Hope that you have understand what i want!
I don't know visual basic etc and i am newbie user in Access 2007 and in Access at all!

Thanks in advance!
Aug 7 '07 #1
2 1990
MikeTheBike
639 Recognized Expert Contributor
Hi
Hi to everyone!
This is my first post here so please don't shout at me!
My question is the following:
I have a table in which there is a field named "Resolution".It's a combo box and has three values "A", "B" and "C" (Note that i entered the values.There isn't any table connected to this table with the above values in it).
When i choose "C",from the drop down menu, then i want a new field to come up with new values in it.
Example:
Field:
Good Movie? "Yes" , "No"
When i choose "No" i want a new field to appear, for example:
Why Not ? "Bad Screenplay" , "Bad Direction" ,etc!

Hope that you have understand what i want!
I don't know visual basic etc and i am newbie user in Access 2007 and in Access at all!

Thanks in advance!
This is not, necessarily, a simple question!

If the combo box (with a value list) is in the table (in datasheet view), then as far as I know, there is no way to do anything when data is entered as there are no events available to look at what is happening.

This would/should all be done on a form. If there is a possibility that you want to use the 3 'Resolutions' (A,B & C) again somewhere else then I would put them in a little table (with an ID field), and use that for the source of the combo box with the ID being the stored value. The same comment would also apply to "Bad Screenplay" , "Bad Direction" ,etc. if they are to entered into a table.


MTB
Aug 7 '07 #2
missinglinq
3,532 Recognized Expert Specialist
I think we need to establish for certain that this combobox is, in fact, on a table and not on a form. Newbies, especially, tend to get these two things mixed up. If, in fact, it is on a table, this needs to be changed, as Mike suggested. Data should never be entered directly into a table by users; this is a recipe form diaster. You don't have to do anything more complicated that goto Forms on the Objects Dialog box and click on "Create Form by using Wizard" and follow the instructions. Choose "Tabular" as the layout if you want you form to look like the table. Post back and let us know whether the combobox is on a table or form.

Also, the title for this post gives absolutely no clue as to the content of the post. I'll be changing it to something more meaningful. Since you are new to the forum, please take the time to read POSTING GUIDELINES at http://www.thescripts.com/forum/thread559246.html Paying particular attention to the section titled Give a clear title to your question.

Welcome to TheScripts, Ohaderfe!

Linq ;0)>
Aug 7 '07 #3

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

Similar topics

3
7459
by: Wayne Wengert | last post by:
I am trying to populate a combobox with a lisy of items. I want the 1st item to be "Make a Selection" and the following items will be names from a table in my DB (See code below). When I run the...
0
5752
by: George Hartas | last post by:
I am using Visual C# .NET 2003 to make a ComboBox accept both mouse and keyboard selection. For mouse selection code, I double-clicked ComboBox to get the default "comboBox1_SelectedIndexChanged"...
2
19809
by: Mamatha | last post by:
Hi I want to add an icon to the textbox's text. I don't know how to display icon in textbox in VB.NET. If any one knows please let me know. Thanks in advance. Mamatha
3
1669
by: Ivan V via DotNetMonster.com | last post by:
Hi All: I would like to know if I can loop my selection in a combobox. For instance, I got 8 items in a combobox, and when I selected it using the up and down arrow, it will stop in the first...
0
407
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...
6
4892
by: ProteusGak | last post by:
Hi, new membership and first post. I am working in VB 2005, windows forms and would like to know how to open form2 based on the user's selection from a combobox or listbox from say, form1. Thank...
0
3651
by: Dan | last post by:
Issue making textbox visible based on specific input from a radio button list in an EditItemTemplate I want to setup a gridview that when in edit mode and when the user selects "Other" from a...
8
5724
by: nil | last post by:
Hello all, It's urgent... i want to add autocomplete textbox facility in my application like google. as you type it suggests option to the user..i want the same kind of facility...i know i...
1
1350
by: miadlor | last post by:
Hi, I've searched and searched..... I'm trying to use a combobox to load a textbox on selection. The problem is the textbox will populate according to what is selected, but not all the info...
0
7049
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
6912
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...
0
7052
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
6981
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5348
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,...
0
4488
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...
0
2989
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1304
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 ...
1
565
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.