Thank you so much!!!
I have another question....
in VB6.0 in a form I have a DataGrid which is populated with data from
Access, but now I want to add all rows from this datagrid in a different
table in Access, how can I do that, because I've seen that I have to add row
by row and I don't want to in that way, I want that all the rows in a single
step to be added...
Thank you
"RoyVidar" a scris:
> > Hi,
> >
[quoted text clipped - 37 lines]
>
> xlsfile here represenging sheet name.
louiss - 29 Dec 2007 21:40 GMT
answer to your second question
i do it this way:
make a database in acces with the exact number of rows and form as you need
it
than select all the data you want to replace (use ctrl C)
go to the empty database and select all (left up) and do ctrl V
i use this methode to place excell data into acess database, it works perfekt
succes
>Thank you so much!!!
>I have another question....
[quoted text clipped - 13 lines]
>>
>> xlsfile here represenging sheet name.
RoyVidar - 30 Dec 2007 11:32 GMT
on 27.12.2007, diaExcel supposed :
> Thank you so much!!!
> I have another question....
[quoted text clipped - 5 lines]
>
> Thank you
[snipped stuff related to previous question]
Dear diaExcel,
though there probably are poeple frequenting this NG that are familiar
with objects of classic VB, I think you probably have better chances
of getting a reply in an NG dedicated to classic VB.
I don't know anything about the control you mention, as it doesn't
exist
in the product for which this NG is dedicated (Ms Access), but, say
you've populated it trough a select (apply WHERE clause as appropriate)
SELECT col1, col2, ...colN FROM SomeTable
you should be able to do something like (air code)
INSERT INTO NewTable
SELECT col1, col2, ...colN FROM SomeTable
- using the first select.
Or, to create a new table, something like
SELECT col1, col2, ...colN
INTO NewTable
FROM SomeTable
You should be able to fire some of this off on an ADO connection to
the db.
But adding redundant data etc, begs the question whether you've chosen
the most optimal design.

Signature
Roy-Vidar