Click here to Skip to main content
15,913,854 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: how can I convert lower case into upper case alphabats in textboxes for web applications Pin
nishkarsh_k8-Oct-07 19:58
nishkarsh_k8-Oct-07 19:58 
AnswerRe: how can I convert lower case into upper case alphabats in textboxes for web applications Pin
Dave Kreskowiak9-Oct-07 1:53
mveDave Kreskowiak9-Oct-07 1:53 
QuestionLicense of MsFlexGrid ocx in Vb 5005 Pin
nishkarsh_k8-Oct-07 18:35
nishkarsh_k8-Oct-07 18:35 
AnswerRe: License of MsFlexGrid ocx in Vb 5005 Pin
Dave Kreskowiak9-Oct-07 1:50
mveDave Kreskowiak9-Oct-07 1:50 
QuestionPlease Help.. Update MS Access using DataGridView in VB2005 Pin
vbDigger'z8-Oct-07 17:51
vbDigger'z8-Oct-07 17:51 
AnswerRe: Please Help.. Update MS Access using DataGridView in VB2005 Pin
Dave Kreskowiak8-Oct-07 17:58
mveDave Kreskowiak8-Oct-07 17:58 
GeneralRe: Please Help.. Update MS Access using DataGridView in VB2005 Pin
vbDigger'z8-Oct-07 18:36
vbDigger'z8-Oct-07 18:36 
GeneralRe: Please Help.. Update MS Access using DataGridView in VB2005 Pin
vbDigger'z8-Oct-07 19:43
vbDigger'z8-Oct-07 19:43 
Do? OleDbDataAdapter.Update() supports (multiple or INNER JOIN) MS Access Table to be update?? or any other way to update two tables at the same time without making manual hardtype code or such a very long codes?? because in some instance of my application.. I have a DataGridView which its records came from an sql query which are two join table.. The Loading of record works fine.. but when i try to make changes into the DataGridView which also means dataset has also committ changes?? and i try to update the record using:

<b>OleDbDataAdapter.Update()</b>

then an ERROR occur just like this:

<b>System.InvalidOperationException: Dynamic SQL generation is not supported against multiple base tables.
at System.Data.Common.DbDataAdapter.UpdatingRowStatusErrors(RowUpdatingEventArgs rowUpdatedEvent, DataRow dataRow)
at System.Data.Common.DbDataAdapter.Update(DataRow[] dataRows, DataTableMapping tableMapping)
at System.Data.Common.DbDataAdapter.UpdateFromDataTable(DataTable dataTable, DataTableMapping tableMapping)
at System.Data.Common.DbDataAdapter.Update(DataSet dataSet, String srcTable)
at System.Data.Common.DbDataAdapter.Update(DataSet dataSet)
at Employee.frmDTR.UpdateRecord() in C:\Employee\frmDTR.vb:line 136</b>

******************
Heres my Code...
**************************

Private Sub LoadRecord(ByVal strSQL As String)

Try
Me.Cursor = Cursors.WaitCursor

oleConnection.ConnectionString = dbConnectionString
oleConnection.Open()

oleDataAdapter = New OleDbDataAdapter(strSQL, oleConnection)
oleCommandBuilder = New OleDbCommandBuilder(oleDataAdapter)
dbDataSet = New DataSet()

oleDataAdapter.Fill(dbDataSet)

DataGridView1.DataSource = dbDataSet.Tables(0).DefaultView

Me.Cursor = Cursors.Default
Catch ex As Exception
MsgBox(ex.ToString())
Finally
oleConnection.Close()
End Try

End Sub


Public Sub UpdateRecord()
Try
oleConnection.Open()
oleDataAdapter.Update(dbDataSet)
Catch ex As Exception
MsgBox(ex.ToString())
Finally
oleConnection.Close()
End Try
End Sub

***************************
heres my SQL Query
*******************************

LoadRecord("SELECT p.IDno as [ID No],p.Lastname,p.Firstname,t.[Time In],t.[Time Out],t.[Date In],t.[Date Out],t.[Remarks] FROM tblPersonal as p inner join tblTimeEntry as t on t.IDNo = p.IDNo Order by p.Lastname")

************
Please anybody there..
GeneralRe: Please Help.. Update MS Access using DataGridView in VB2005 Pin
Dave Kreskowiak9-Oct-07 1:51
mveDave Kreskowiak9-Oct-07 1:51 
GeneralRe: Please Help.. Update MS Access using DataGridView in VB2005 Pin
vbDigger'z9-Oct-07 15:57
vbDigger'z9-Oct-07 15:57 
QuestionWant To Make My Software as Trial Version [modified] Pin
aarti838-Oct-07 16:50
aarti838-Oct-07 16:50 
AnswerRe: Want To Make My Software as Trial Version Pin
Dave Kreskowiak8-Oct-07 17:53
mveDave Kreskowiak8-Oct-07 17:53 
Questionreport ini vb.net Pin
di3.ny288-Oct-07 15:56
di3.ny288-Oct-07 15:56 
AnswerRe: report ini vb.net Pin
Dave Kreskowiak8-Oct-07 17:50
mveDave Kreskowiak8-Oct-07 17:50 
Questionretrieve the length of an mp3 file? Pin
Mr Oizo8-Oct-07 8:04
Mr Oizo8-Oct-07 8:04 
AnswerRe: retrieve the length of an mp3 file? Pin
JamesS[C1]8-Oct-07 8:24
JamesS[C1]8-Oct-07 8:24 
GeneralRe: retrieve the length of an mp3 file? Pin
Mr Oizo8-Oct-07 10:44
Mr Oizo8-Oct-07 10:44 
GeneralRe: retrieve the length of an mp3 file? Pin
Christian Graus8-Oct-07 13:41
protectorChristian Graus8-Oct-07 13:41 
AnswerRe: retrieve the length of an mp3 file? Pin
Christian Graus8-Oct-07 13:40
protectorChristian Graus8-Oct-07 13:40 
QuestionEnquiry Pin
TheSpiritSong8-Oct-07 7:03
TheSpiritSong8-Oct-07 7:03 
AnswerRe: Enquiry Pin
Ajay.k_Singh8-Oct-07 7:42
Ajay.k_Singh8-Oct-07 7:42 
GeneralRe: Enquiry Pin
TheSpiritSong9-Oct-07 8:01
TheSpiritSong9-Oct-07 8:01 
AnswerRe: Enquiry Pin
Kschuler8-Oct-07 8:01
Kschuler8-Oct-07 8:01 
GeneralRe: Enquiry Pin
TheSpiritSong9-Oct-07 8:01
TheSpiritSong9-Oct-07 8:01 
AnswerRe: Enquiry Pin
GuyThiebaut8-Oct-07 8:22
professionalGuyThiebaut8-Oct-07 8:22 

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.