C
Cire via AccessMonster.com
Hi all, i have a problem, not sure if its good or bad. Let me 1st tell you
what i've done.
i've used querydefs(mdb) to create a query, which is pass-through to the SQL
server backend and subsequently used docmd.openquery to open the query. all
these code is in a cmdrunquery_click command button.
The problem is that when my users export these data to excel, excel chops off
data. i.e. if the data is more than 256 chars long, excel only retrieves the
1st 256 characters and chops off the rest. I believe this is an excel design
constraint and i don't know why msoft made it this way...The data concerned
is 'description' thats why it can be more than 256 characters
One of the solutions that i thought off is to actually save the data that the
pass-through query returns into a local table, and save the data in memo form.
I tested this with a test table that saved the data in 'Memo' form instead of
'Text' form and exported this table to excel, which took in all the data >256
chars.
However i have no idea how to automate this, i.e. implement it into my
current code. I know i will have to do away with the docmd.openquery and add
some code that creates the table and the fields in memo format.
and then launch that table with docmd.opentable.
so how do i do that? i hope i'm clear enough.
Thanks
Eric
what i've done.
i've used querydefs(mdb) to create a query, which is pass-through to the SQL
server backend and subsequently used docmd.openquery to open the query. all
these code is in a cmdrunquery_click command button.
The problem is that when my users export these data to excel, excel chops off
data. i.e. if the data is more than 256 chars long, excel only retrieves the
1st 256 characters and chops off the rest. I believe this is an excel design
constraint and i don't know why msoft made it this way...The data concerned
is 'description' thats why it can be more than 256 characters
One of the solutions that i thought off is to actually save the data that the
pass-through query returns into a local table, and save the data in memo form.
I tested this with a test table that saved the data in 'Memo' form instead of
'Text' form and exported this table to excel, which took in all the data >256
chars.
However i have no idea how to automate this, i.e. implement it into my
current code. I know i will have to do away with the docmd.openquery and add
some code that creates the table and the fields in memo format.
and then launch that table with docmd.opentable.
so how do i do that? i hope i'm clear enough.
Thanks
Eric