Advertisement

08.16.2008 at 03:50AM PDT, ID: 23653306 | Points: 500
[x]
Attachment Details

VB dot net & data binding

Asked by DrDamnit in Visual Basic Programming, VB Database Programming, Microsoft Visual Basic.Net

Tags: , , , ,

I have a dropdown list control that I have bound to an SQL table called groups. The display, displays "group_name", which is a human readable text field.

I want to bind SelectedValue to group_id, which has a data type of uniqueidentifier (GUIDs), so I can later run an insert query using selected value:

INSERT INTO accounts (contact, phone, groupid) VALUES(?,?,?)

where those values are contact.text, phone.text, cboGroup.selectedvalue.

but when I do this, I get "Unspecified Error"....which is always greatly helpful.

What do I need to change to get this to work?Start Free Trial
[+][-]08.16.2008 at 04:41AM PDT, ID: 22243808

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.16.2008 at 06:23AM PDT, ID: 22244018

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.16.2008 at 08:10AM PDT, ID: 22244306

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.17.2008 at 01:15PM PDT, ID: 22248077

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_EXPERT_20070906