Click here to Skip to main content
15,898,987 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How overwrite the word after the specific word in text file... Pin
mo14925-May-18 16:25
mo14925-May-18 16:25 
GeneralRe: How overwrite the word after the specific word in text file... Pin
KimbleGray7-May-18 4:01
KimbleGray7-May-18 4:01 
QuestionVerify files uploaded to ftp Pin
Marcus Genovese30-Apr-18 23:34
Marcus Genovese30-Apr-18 23:34 
AnswerRe: Verify files uploaded to ftp Pin
Gerry Schmitz1-May-18 5:24
mveGerry Schmitz1-May-18 5:24 
GeneralRe: Verify files uploaded to ftp Pin
Marcus Genovese2-May-18 3:04
Marcus Genovese2-May-18 3:04 
GeneralRe: Verify files uploaded to ftp Pin
Gerry Schmitz2-May-18 8:16
mveGerry Schmitz2-May-18 8:16 
AnswerRe: Verify files uploaded to ftp Pin
Jochen Arndt2-May-18 3:36
professionalJochen Arndt2-May-18 3:36 
QuestionCombobox Values using two different SQL tables Pin
gherkin1230-Apr-18 11:44
gherkin1230-Apr-18 11:44 
Hi
Many apologies if this has been asked before, for the life of me I cannot find an answer (perhaps using the wrong search terminology).

Basically I've two tables in SQL - aircraft and status (they are linked with a foreign key) .

I've also got a form which has a combobox on it. This combobox contains 4 values which are located in status:
FMC
PMC
U/S
UNAVAIL

I've coded that part so that combobox displays above mentioned values (works fine):
Dim cboSelect As SqlDataAdapter = New SqlDataAdapter("SELECT condition FROM dbo.status", connection)
Dim cbox As New DataTable
cboSelect.Fill(cbox)
With cboServ
            .DisplayMember = "condition"
            .DataSource = cbox
        End With

The problem I'm having is having the combobox display the actual value that is being used in the aircraft table. The record in aircraft (column name condition) is UNAVAIL. At the moment the Combobox defaults to FMC.

I know the SQL (well the query works whether its correct for VB or not I don't know)
SELECT condition FROM dbo.aircraft WHERE avNum='XXXXX'

Any help much appreciated Smile | :) TIA
Questionmath challenge Pin
santi nuñez29-Apr-18 11:35
santi nuñez29-Apr-18 11:35 
AnswerRe: math challenge Pin
Richard MacCutchan29-Apr-18 21:25
mveRichard MacCutchan29-Apr-18 21:25 
GeneralRe: math challenge Pin
santi nuñez30-Apr-18 4:31
santi nuñez30-Apr-18 4:31 
GeneralRe: math challenge Pin
Richard MacCutchan30-Apr-18 5:38
mveRichard MacCutchan30-Apr-18 5:38 
GeneralRe: math challenge Pin
santi nuñez30-Apr-18 6:43
santi nuñez30-Apr-18 6:43 
GeneralRe: math challenge Pin
Richard MacCutchan30-Apr-18 6:53
mveRichard MacCutchan30-Apr-18 6:53 
GeneralRe: math challenge Pin
santi nuñez30-Apr-18 6:55
santi nuñez30-Apr-18 6:55 
GeneralRe: math challenge Pin
Richard Deeming30-Apr-18 7:02
mveRichard Deeming30-Apr-18 7:02 
GeneralRe: math challenge Pin
santi nuñez30-Apr-18 9:37
santi nuñez30-Apr-18 9:37 
QuestionAdjusting a .VBS/.DOS command. Pin
glenn masters28-Apr-18 1:40
glenn masters28-Apr-18 1:40 
AnswerRe: Adjusting a .VBS/.DOS command. Pin
Eddy Vluggen30-Apr-18 1:26
professionalEddy Vluggen30-Apr-18 1:26 
QuestionVB.NET encryption code to VB6 Pin
Member 305688623-Apr-18 22:57
Member 305688623-Apr-18 22:57 
AnswerRe: VB.NET encryption code to VB6 Pin
Jochen Arndt24-Apr-18 0:48
professionalJochen Arndt24-Apr-18 0:48 
AnswerRe: VB.NET encryption code to VB6 Pin
Chris Quinn24-Apr-18 4:40
Chris Quinn24-Apr-18 4:40 
QuestionFlat NumericUpDown Pin
jtpaa19-Apr-18 20:03
jtpaa19-Apr-18 20:03 
AnswerRe: Flat NumericUpDown Pin
Maciej Los23-Apr-18 10:08
mveMaciej Los23-Apr-18 10:08 
QuestionGetting Run-time error '9' for Subscript out of range Pin
Member 1378560917-Apr-18 23:41
Member 1378560917-Apr-18 23:41 

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.