Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

From ComboBox - Passing value to Database

Posted on 2010-08-27
4
Medium Priority
?
360 Views
Last Modified: 2013-11-27


I need to Pass - ComboBox Text to the Database.

Not the Id .. i need to pass actual value to the database.

Whats the syntax for fetching the value from ComboBox
0
Comment
Question by:chokka
4 Comments
 
LVL 48

Expert Comment

by:Wayne Taylor (webtubbs)
ID: 33548018
0
 
LVL 17

Expert Comment

by:Zhaolai
ID: 33548114
If you mean the value actually displayed in the combobox, use ComboBox1.Text.
0
 

Expert Comment

by:kimapacible
ID: 33548134
Dim strActualValue as string
strActualValue = ComboBox1.text
0
 
LVL 18

Accepted Solution

by:
John (Yiannis) Toutountzoglou earned 2000 total points
ID: 33549417
"If"  Your ComboBox is databound to a datatable you can also define a datarowview....
Dim drv as DataroWview =Ctype(Me.Combobox.SelectedItem,DataRowView)
'And for The Selected Text'

Dim SelText as String=drv.Item("YouColumnTableName")   'And Pass SelText to the Database...

Open in new window

0

Featured Post

[Webinar] Cloud Security

In this webinar you will learn:

-Why existing firewall and DMZ architectures are not suited for securing cloud applications
-How to make your enterprise “Cloud Ready”, and fix your aging DMZ architecture
-How to transform your enterprise and become a Cloud Enabler

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question