Click here to Skip to main content
15,916,842 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Can an array be filled from information in a text file Pin
Steve Pullan19-Apr-06 4:32
Steve Pullan19-Apr-06 4:32 
GeneralRe: Can an array be filled from information in a text file Pin
lawrencef1419-Apr-06 6:05
lawrencef1419-Apr-06 6:05 
GeneralRe: Can an array be filled from information in a text file Pin
Steve Pullan19-Apr-06 14:15
Steve Pullan19-Apr-06 14:15 
GeneralRe: Can an array be filled from information in a text file Pin
lawrencef1425-Apr-06 4:14
lawrencef1425-Apr-06 4:14 
Questionmaster..xp_cmdshell command couldn't delete files Pin
jjbhey18-Apr-06 17:13
jjbhey18-Apr-06 17:13 
AnswerRe: master..xp_cmdshell command couldn't delete files Pin
Dave Kreskowiak19-Apr-06 1:42
mveDave Kreskowiak19-Apr-06 1:42 
QuestionDatagrid, DataSet Pin
dannygilbert318-Apr-06 10:59
dannygilbert318-Apr-06 10:59 
QuestionCreate listbox based on contents of table Pin
penguin500018-Apr-06 10:53
penguin500018-Apr-06 10:53 
Newbie requiring help to something which is no doubt very simple!
I have written a small application which gathers Company Name data from an Access table. I've also got a ValueMember set up which I am using to display the path to the mdb file used for the Company so that the user can see where the data is located, and it is also allowing me to offer the user a button so that they can open an Explorer window to go straight to the location of the file.
My problem is that if the Company Name field is blank, I want to display some text (other than a blank) in the list box.

The code snippet so far is:

*********************************************

strConnString = "Jet OLEDB:Database Password .... blah, blah ... Provider=""Microsoft.Jet.OLEDB.4.0"";"

Me.OleDbConnection1.ConnectionString = strConnString

Me.OleDbSelectCommand1.CommandText = "SELECT CompanyId, CompanyName, FilePath FROM CompanyDetails WHERE (Version = '1') AND (Deleted = 0) ORDER BY CompanyName"

Me.OleDbSelectCommand1.Connection = Me.OleDbConnection1

OleDbDataAdapter1.Fill(DsCentralDat1)

*********************************************

This works well, and I can see the contents of my database in the listbox - its just that I can't get it to overwrite any blank entries in the listbox (if it finds any) with something which may be more meaningful to the user.

Hope you can help.
AnswerRe: Create listbox based on contents of table Pin
Solid Snake18-Apr-06 11:01
Solid Snake18-Apr-06 11:01 
GeneralRe: Create listbox based on contents of table Pin
penguin500018-Apr-06 11:23
penguin500018-Apr-06 11:23 
GeneralRe: Create listbox based on contents of table Pin
Solid Snake18-Apr-06 11:40
Solid Snake18-Apr-06 11:40 
GeneralRe: Create listbox based on contents of table Pin
mr_1234518-Apr-06 13:36
mr_1234518-Apr-06 13:36 
GeneralRe: Create listbox based on contents of table Pin
mr_1234518-Apr-06 16:46
mr_1234518-Apr-06 16:46 
GeneralRe: Create listbox based on contents of table Pin
penguin500018-Apr-06 19:17
penguin500018-Apr-06 19:17 
QuestionUnique ramdomized numbers Pin
Solid Snake18-Apr-06 10:47
Solid Snake18-Apr-06 10:47 
AnswerRe: Unique ramdomized numbers Pin
Guffa18-Apr-06 12:56
Guffa18-Apr-06 12:56 
GeneralRe: Unique ramdomized numbers Pin
Solid Snake18-Apr-06 13:07
Solid Snake18-Apr-06 13:07 
AnswerRe: Unique ramdomized numbers Pin
Guffa19-Apr-06 2:24
Guffa19-Apr-06 2:24 
GeneralRe: Unique ramdomized numbers Pin
Solid Snake19-Apr-06 12:48
Solid Snake19-Apr-06 12:48 
AnswerRe: Unique ramdomized numbers Pin
Guffa20-Apr-06 7:16
Guffa20-Apr-06 7:16 
QuestionInternet Connection Status Pin
Devraj Raut18-Apr-06 10:12
Devraj Raut18-Apr-06 10:12 
AnswerRe: Internet Connection Status Pin
mr_1234518-Apr-06 13:13
mr_1234518-Apr-06 13:13 
GeneralRe: Internet Connection Status Pin
Devraj Raut18-Apr-06 22:25
Devraj Raut18-Apr-06 22:25 
QuestionDivisors Pin
Heart_Flame18-Apr-06 9:37
Heart_Flame18-Apr-06 9:37 
AnswerRe: Divisors Pin
Guffa18-Apr-06 10:08
Guffa18-Apr-06 10:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.