473,799 Members | 3,310 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

textbox populated from combobox not storing value

75 New Member
I am having a problem with my Access database, since I am new to this, I have no idea what is goign on????

okay here is the problem.

I have a database which has Meds tables, and has two fields.
1- Medication_Name
2-Concentration

On the form I have a combo box for Medication_Name (it has all the medication names form the Medication_Name field), and textbox for Concentration. I want my User when they pick the specific medication, the concentration textbox should get populated by itself. So, I was playing around with it, i got that part working, but the problem I am having is when the textfield for Concentration gets populated, its not saving in the main table. Is there a way we could do that?

please help me.

Thanks
Jun 7 '07
14 3257
FishVal
2,653 Recognized Expert Specialist
sorry I tried that, but still nothing...i am sure its me. I am not sure how to fix this crap. I will appreciate it if i can send yout the file on your email id, take a look, and see what am i doing wrong?

thanks
let me know plz.
Sure.
By the way it will be interesting for me to see myself what a is happening in your db.
Jun 11 '07 #11
FishVal
2,653 Recognized Expert Specialist
Sure.
By the way it will be interesting for me to see myself what a is happening in your db.
Sorry the option to receive e-mails was disabled. Now you can sent. If you will enable this option in your profile I will send you my sample.
Jun 12 '07 #12
pukhton
75 New Member
Sorry the option to receive e-mails was disabled. Now you can sent. If you will enable this option in your profile I will send you my sample.
Thanks, and sorry for taking long. I have enabled my email, so please send me yours. I am sending you mine. Take a look.

You will see on the main form u have a Medication combo box and right under that you have a concentration text box. I want my user to pick medication from the drop down menu, when they do that, the text box for concentration should get populated by it self from the table "Meds". Each medication has a standrad concentration. It works fine on the form, but the concentration text box is not saving into the MainTable. Please take a look, and help me out.
Jun 12 '07 #13
pukhton
75 New Member
Thanks, and sorry for taking long. I have enabled my email, so please send me yours. I am sending you mine. Take a look.

You will see on the main form u have a Medication combo box and right under that you have a concentration text box. I want my user to pick medication from the drop down menu, when they do that, the text box for concentration should get populated by it self from the table "Meds". Each medication has a standrad concentration. It works fine on the form, but the concentration text box is not saving into the MainTable. Please take a look, and help me out.
sorry it doesnt let me attach the file, syas invalid file. I thinks its mdb file thats why..
please send me your file at pukhton77@hotma il.com
and i will send you mine back.
Jun 12 '07 #14
pukhton
75 New Member
I need help please.

What i am trying to achieve is to save value from Meds Table and save it in Main Table.

Meds tabel has two colums, Medication_Name and Concentration.
Each medication has standrad concentration.

I have a combo box for Medications and text box for Concentration in my Form. When User picks medication, the concentration text box gets populated from the Meds colum, but that value is not saving in the Main Table.
please help me out...
Jun 18 '07 #15

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

Similar topics

5
3082
by: Steve | last post by:
I have an unbound combobox in the form header of a continuous form. The selection in the combobox sets the where clause in a querydef which determines QryPFrmInventoryManagement. The following code is in the afterupdate event of the combobox: Me.RecordSource = "QryPFrmInventoryManagement" Me!ItemCount = Me.RecordsetClone.RecordCount & " Items" MsgBox Me.RecordsetClone.RecordCount & " Items"
2
2742
by: Zlatko Matiæ | last post by:
I have several forms hierarchycaly nested in each other (form/subform/subform/subform....). The final form is "continous form", while parent forms are single forms through which navigation was performed by navigation buttons. Now I want to enable navigation through records both by navigation buttons and COMBOBOXES. Therefore I added comboboxes besides textboxes. Let's suppose that txtAAA is textbox and cbxAAA is cmbobox. My aproach was...
0
1961
by: Ken Arway | last post by:
Using .Net framework 1.1 I've got a Windows Forms application with a tab control having four tab pages. TabPage4 contains a Combobox and a TextBox, which are bound to the same XML file as a DataSource. The ComboBox displays the values from the "name" column of the DataSource and the TextBox displays the "location" value. The two controls are co-ordinated by a BindingManagerBase (bmInfo). When a different "name" item in the ComboBox is...
11
7764
by: Joe | last post by:
Hello All, I have an ASP.NET page with one Textbox (SearchTextBox) and one ImageButton (SearchButton) server controls. The user can type search text in SearchTextBox and click SearchButton and the web server performs a database query and displays the results. All of this works fine. I want the user to be able to press the Enter key while the cursor is still in SearchTextBox and have the SearchButton.Click event fire (thus performing...
2
19876
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
2
2506
by: Scott Emick | last post by:
I cannot remember how to enable the vertical scrollbar in my textbox for which I've added combobox controls to dynamically. I have the vertical scrollbar turned on, but it is greyed out and I cannot remember how to 'enable' it. Thanks -- Scott Emick
1
3239
by: billypit | last post by:
Hi, I am totaly new to MS Access. I have one form in MS Access in which i want that whenever i select an item from combobox then in the textbox on the same form or subform i want value from table based on selection from combobox. like in my table there two fields ID,name 1 billy 2 sandy
7
4893
by: creative1 | last post by:
hi, I have a simple query. I have a dynamic combobox when I select one value fromt he combobox; on click a function is called that display the value of the combobox(i.e not same as text list of combobox) in textbox on the form. I want to display the selected entry(not the value) of the combobox in another text box. How I can do that this is what I already have function getvalue(form) { ...
2
3372
by: dibblm | last post by:
I'll start this hopefully simple and add code where needed or requested. Im using a combobox that bound to a DataSet. The Dataset retreives it's values from SQL. I can retreive the values fine. However only displaying (1) Column. Which is fine. Here's where it gets complicated for me. The dataset has 2 other columns that get filled. I need the resulting columns to be sent to text boxes when I select a value from the combobox. ...
0
9687
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9541
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
10485
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10252
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...
1
10231
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10027
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6805
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();...
1
4141
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
3759
muto222
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.