Click here to Skip to main content
16,015,594 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow can I auto-populate two MS Word document fields (customer name) and (address) Pin
kenn_rosie14-Feb-06 20:36
kenn_rosie14-Feb-06 20:36 
Questionaccess vb Pin
_tasleem14-Feb-06 20:00
_tasleem14-Feb-06 20:00 
AnswerRe: access vb Pin
Joshua Quick15-Feb-06 8:19
Joshua Quick15-Feb-06 8:19 
AnswerRe: access vb Pin
Dave Kreskowiak15-Feb-06 8:41
mveDave Kreskowiak15-Feb-06 8:41 
QuestionSearching a Dataset in VB.Net Pin
mayhem_rules14-Feb-06 17:41
mayhem_rules14-Feb-06 17:41 
AnswerRe: Searching a Dataset in VB.Net Pin
alien viper14-Feb-06 17:55
alien viper14-Feb-06 17:55 
GeneralRe: Searching a Dataset in VB.Net Pin
mayhem_rules14-Feb-06 18:10
mayhem_rules14-Feb-06 18:10 
GeneralRe: Searching a Dataset in VB.Net Pin
alien viper14-Feb-06 20:28
alien viper14-Feb-06 20:28 
This is example.

Private Sub FillDataGrid()

Dim strId As String = "" 'Set Id
Dim strPeriod As String = "" 'Set Period
Dim tableName As String = "" 'Set tableName
Dim connstring As String = "" 'Set ConnectionString

Dim selectSQL As String = "SELECT * FROM " + tableName + " WHERE [ID]='" + strId + "' AND Period='" + strPeriod + "'"

Dim conn As New OleDb.OleDbConnection(connstring)
Dim cmd As New OleDb.OleDbCommand(selectSQL, conn)

Dim ds As New DataSet
Dim da As New OleDb.OleDbDataAdapter(cmd)

Try
conn.Open()
da.Fill(ds)
DataGrid1.DataSource = ds.Tables(0)
Catch ex As Exception
MessageBox.Show(ex.Message, ex.Source)
Finally
If conn.State = ConnectionState.Open Then
conn.Close()
end if
conn.Dispose()
cmd.Dispose()
End Try
End Sub


!alien!
GeneralRe: Searching a Dataset in VB.Net Pin
shiroamachi14-Feb-06 21:44
shiroamachi14-Feb-06 21:44 
GeneralRe: Searching a Dataset in VB.Net Pin
mayhem_rules14-Feb-06 22:06
mayhem_rules14-Feb-06 22:06 
QuestionFax Event is not fired in VB.NET for incoming fax Pin
dashprasannajit14-Feb-06 17:37
dashprasannajit14-Feb-06 17:37 
AnswerRe: Fax Event is not fired in VB.NET for incoming fax Pin
Dave Kreskowiak15-Feb-06 4:46
mveDave Kreskowiak15-Feb-06 4:46 
QuestionHow to draw a picture on the titlebar? Pin
Chatura Dilan14-Feb-06 16:39
Chatura Dilan14-Feb-06 16:39 
AnswerRe: How to draw a picture on the titlebar? Pin
vivek132315-Feb-06 0:14
vivek132315-Feb-06 0:14 
GeneralRe: How to draw a picture on the titlebar? Pin
Chatura Dilan15-Feb-06 13:39
Chatura Dilan15-Feb-06 13:39 
Questiondata synchronization between PXE server Pin
andylimjp14-Feb-06 15:41
andylimjp14-Feb-06 15:41 
AnswerRe: data synchronization between PXE server Pin
Dave Kreskowiak15-Feb-06 4:40
mveDave Kreskowiak15-Feb-06 4:40 
GeneralRe: data synchronization between PXE server Pin
andylimjp15-Feb-06 5:30
andylimjp15-Feb-06 5:30 
GeneralRe: data synchronization between PXE server Pin
Dave Kreskowiak15-Feb-06 8:14
mveDave Kreskowiak15-Feb-06 8:14 
QuestionThird Party Control Pin
welbert14-Feb-06 15:15
welbert14-Feb-06 15:15 
AnswerRe: Third Party Control Pin
Dave Kreskowiak15-Feb-06 4:30
mveDave Kreskowiak15-Feb-06 4:30 
AnswerRe: Third Party Control Pin
Dave Kreskowiak16-Feb-06 1:14
mveDave Kreskowiak16-Feb-06 1:14 
QuestionDate format..... Pin
welbert14-Feb-06 15:11
welbert14-Feb-06 15:11 
AnswerRe: Date format..... Pin
Joshua Quick14-Feb-06 17:27
Joshua Quick14-Feb-06 17:27 
AnswerRe: Date format..... Pin
alien viper14-Feb-06 17:47
alien viper14-Feb-06 17:47 

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.