Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I'm trying to read some SQLLite3 .DB-files, from VBA, but it just turns up rubbish? I've tried both with the normal read text-file method and using FileSystemObject textstream, but the text is just not readable??? Funny thing is that if I open the .DB-file in Notepad, everything looks fine and readable??? Some search on the net reveals that it apparrently has to do with the YTF-8 format of the .DB-file. But the FileSyatemObject has a flag for reading UFT-8, and yet I can't read it?!? Can anybody help??? Thanks in advance... CE |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I'm trying to read some SQLLite3 .DB-files, from VBA, but it just turns up rubbish? I've tried both with the normal read text-file method and using FileSystemObject textstream, but the text is just not readable??? Funny thing is that if I open the .DB-file in Notepad, everything looks fine and readable??? Some search on the net reveals that it apparrently has to do with the YTF-8 format of the .DB-file. But the FileSyatemObject has a flag for reading UFT-8, and yet I can't read it?!? Can anybody help??? Thanks in advance... CE Have you tried ADODB? -- Garry Free usenet access at http://www.eternal-september.org Classic VB Users Regroup! comp.lang.basic.visual.misc microsoft.public.vb.general.discussion |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Have you tried ADODB?
Bingo! Thanks, Garry :-) CE "GS" wrote in message ... Hi, I'm trying to read some SQLLite3 .DB-files, from VBA, but it just turns up rubbish? I've tried both with the normal read text-file method and using FileSystemObject textstream, but the text is just not readable??? Funny thing is that if I open the .DB-file in Notepad, everything looks fine and readable??? Some search on the net reveals that it apparrently has to do with the YTF-8 format of the .DB-file. But the FileSyatemObject has a flag for reading UFT-8, and yet I can't read it?!? Can anybody help??? Thanks in advance... CE Have you tried ADODB? -- Garry Free usenet access at http://www.eternal-september.org Classic VB Users Regroup! comp.lang.basic.visual.misc microsoft.public.vb.general.discussion |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Best way to do this is via the VB wrapper from Olaf Schmidt, vbRichClient5.
Can download he http://www.vbrichclient.com/#/en/About/ RBS "Charlotte E." wrote in message ... Hi, I'm trying to read some SQLLite3 .DB-files, from VBA, but it just turns up rubbish? I've tried both with the normal read text-file method and using FileSystemObject textstream, but the text is just not readable??? Funny thing is that if I open the .DB-file in Notepad, everything looks fine and readable??? Some search on the net reveals that it apparrently has to do with the YTF-8 format of the .DB-file. But the FileSyatemObject has a flag for reading UFT-8, and yet I can't read it?!? Can anybody help??? Thanks in advance... CE |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Best way to do this is via the VB wrapper from Olaf Schmidt,
vbRichClient5. Can download he http://www.vbrichclient.com/#/en/About/ Perhaps not the "Best way" in this case! I have Olaf's package but never used it for accessing data with VBA since it requires shipping a dependancy. (This may also require registering if not using Olaf's method of running DLLs reg-free in VBA projects!<g) This is not a bad thing if a VBA project consists of more than 1 file anyway, but most are a single workbook (which may or may not be shared over a network)! Otherwise, the MS ActiveX Data Objects libs install with Windows and so already exist on host machines. Also, there's loads of code samples available using both the JET or ACE providers to work with databases from/in Excel. JET works with both early/late versions of MSO, ACE only works with v12 and later. -- Garry Free usenet access at http://www.eternal-september.org Classic VB Users Regroup! comp.lang.basic.visual.misc microsoft.public.vb.general.discussion |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sure, there are drawbacks, but it is faster and you have more options.
RBS "GS" wrote in message ... Best way to do this is via the VB wrapper from Olaf Schmidt, vbRichClient5. Can download he http://www.vbrichclient.com/#/en/About/ Perhaps not the "Best way" in this case! I have Olaf's package but never used it for accessing data with VBA since it requires shipping a dependancy. (This may also require registering if not using Olaf's method of running DLLs reg-free in VBA projects!<g) This is not a bad thing if a VBA project consists of more than 1 file anyway, but most are a single workbook (which may or may not be shared over a network)! Otherwise, the MS ActiveX Data Objects libs install with Windows and so already exist on host machines. Also, there's loads of code samples available using both the JET or ACE providers to work with databases from/in Excel. JET works with both early/late versions of MSO, ACE only works with v12 and later. -- Garry Free usenet access at http://www.eternal-september.org Classic VB Users Regroup! comp.lang.basic.visual.misc microsoft.public.vb.general.discussion |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sure, there are drawbacks, but it is faster and you have more
options. RBS I agree, so long as the project isn't restricted to a single file<g! -- Garry Free usenet access at http://www.eternal-september.org Classic VB Users Regroup! comp.lang.basic.visual.misc microsoft.public.vb.general.discussion |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Read Only files | Excel Programming | |||
Read From Files | Excel Discussion (Misc queries) | |||
Shared files - read only on the fly | Excel Discussion (Misc queries) | |||
read only files | Excel Discussion (Misc queries) | |||
Files Created By One Are Read-Only To Others | Excel Discussion (Misc queries) |