Bound Combobox Selection
Bound Combobox Selection
Bound Combobox Selection
Bound Combobox Selection
Bound Combobox Selection
Bound Combobox Selection Bound Combobox Selection Bound Combobox Selection Bound Combobox Selection Bound Combobox Selection Bound Combobox Selection Bound Combobox Selection Bound Combobox Selection
Bound Combobox Selection Bound Combobox Selection
Bound Combobox Selection
Go Back  Xtreme Visual Basic Talk > > > Bound Combobox Selection


Reply
 
Thread Tools Display Modes
  #21  
Old 07-13-2004, 02:40 PM
MKoslof's Avatar
MKoslofBound Combobox Selection MKoslof is offline
Cum Grano Salis

Retired Moderator
* Guru *
 
Join Date: Jul 2002
Location: Baltimore, Maryland
Posts: 14,636
Default


Check the value before continuing....something like:

Code:
If Not isDBNull(dr(0)) Then 'assign it, do you work Else 'skip it, reassign a new value, etc End If
__________________
"Artificial Intelligence is no match for natural stupidity." ~unknown
Reply With Quote
  #22  
Old 07-13-2004, 02:46 PM
oralb5 oralb5 is offline
Regular
 
Join Date: Jun 2004
Posts: 82
Default

I just got that (that dbnull is different).

I still have one more question...since I have 12 textboxes do I need to do that to all twelve or can you think of a way to loop this.

Thanks again for all the help.
Reply With Quote
  #23  
Old 07-13-2004, 06:21 PM
MKoslof's Avatar
MKoslofBound Combobox Selection MKoslof is offline
Cum Grano Salis

Retired Moderator
* Guru *
 
Join Date: Jul 2002
Location: Baltimore, Maryland
Posts: 14,636
Default

You could write a function, and pass in the databinding of that particular control as a parameter. Besides that...not really , you'll have to check all 12.
__________________
"Artificial Intelligence is no match for natural stupidity." ~unknown
Reply With Quote
  #24  
Old 07-14-2004, 06:47 AM
oralb5 oralb5 is offline
Regular
 
Join Date: Jun 2004
Posts: 82
Default

I just went ahead and checked all 12. Thanks again for all the help.
Reply With Quote
  #25  
Old 07-14-2004, 08:24 AM
MKoslof's Avatar
MKoslofBound Combobox Selection MKoslof is offline
Cum Grano Salis

Retired Moderator
* Guru *
 
Join Date: Jul 2002
Location: Baltimore, Maryland
Posts: 14,636
Default

Great news..good luck with the remainder of your project.
__________________
"Artificial Intelligence is no match for natural stupidity." ~unknown
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Bound Combobox Selection
Bound Combobox Selection
Bound Combobox Selection Bound Combobox Selection
Bound Combobox Selection
Bound Combobox Selection
Bound Combobox Selection Bound Combobox Selection Bound Combobox Selection Bound Combobox Selection Bound Combobox Selection Bound Combobox Selection Bound Combobox Selection
Bound Combobox Selection
Bound Combobox Selection
 
Bound Combobox Selection
Bound Combobox Selection
 
-->