Re: datatable already belongs to another dataset
"Sam" <samuel.berthelot@xxxxxxxx> schreef in bericht
news:1114608410.723269.319420@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi,
> I have this error message with the following code :
> > m_dsSysInfo = New DataSet
> Dim dt As DataTable = m_fields.GetAllTables()
> m_dsSysInfo.Tables.Add(dt)
>
> Why??? GetAllTables return a single datatable, so it should work ?!
>
Why should it work?
That would be when it returned a *new* datatable.
Cor
.
Relevant Pages
- datatable already belongs to another dataset
... I have this error message with the following code: ... Dim dt As DataTable = m_fields.GetAllTables ... GetAllTables return a single datatable, ... Prev by Date: ... (microsoft.public.dotnet.languages.vb) - Re: error messages practically worthless
... the .open statement) it opens fine. ... Access itself makes the query statement. ... Dim cnnFLDCW, cnnCurPrj As ADODB.Connection ... > ways to get this error message, such as typographical errors, incorrect ... (microsoft.public.access.externaldata) - Re: Return to form if query unmatched
... I am getting the following error message: ... If it doesn't pop up a message and set Cancel = True. ... Dim Myrst As Recordset ... Dim MyRecCount As Long ... (microsoft.public.access.queries) - Re: Script to create subdirectories
... I tried it and I'm getting an error message at this line: ... Dim aFolders, newFolder ... ' Splits the various components of the folder name. ... (microsoft.public.windows.server.scripting) - RE: ODBC Driver Login Failed
... Further coding has revealed that this error message does not occur if I do ... Dim oCnn As ADODB.Connection ... Set oCnn = New ADODB.Connection ... 'Clean up Excel Objects ... (microsoft.public.access.modulesdaovba) |
|