Mark Ashton
8/16/2005 1:37:00 AM
Generally this would be something in the connection string not quite right.
For OdbcConnection it should have at minimum "driver={Microsoft Access
Driver (*.mdb)};dbq=c:\\file.mdb;"
--
This posting is provided "AS IS", with no warranties, and confers no rights.
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.
"Peter" <Peter@discussions.microsoft.com> wrote in message
news:5E66FDAE-9478-4B12-BB41-89C8FB6F2A4C@microsoft.com...
> Hi Dave,
>
> thx for responding. The .mdb file is on the same drive as the program. Any
> suggestion ?
>
> Peter
>
>
> "Dave F." wrote:
>
>> Hi Peter,
>>
>> Just a question. Are you trying to access remote data or does the Access
>> mdb
>> reside on the same drive as your program? It makes a big difference on
>> how
>> it will handle the connnection.
>>
>> Dave
>>
>> "Peter" <Peter@discussions.microsoft.com> wrote in message
>> news:BD550CFD-AF3C-4185-A93F-64696F7DE27C@microsoft.com...
>> >I have a .Net VC++ program that connect to an MS Access database which
>> >works
>> > fine with Windows XP and 2k. But when I tried it on 98, first I get an
>> > error
>> > saying I need MDAC 2.6 or higher, so I installed 2.8 but now it says
>> >
>> > ERROR [IM002][Microsoft][ODBC Driver Manager] Data source name not
>> > found
>> > and
>> > no default driver specified.
>> >
>> > I tried making changes to the DSN stuff in Control Panel but it''s still
>> > not
>> > working
>> >
>> > My code is basically
>> >
>> > dataset->clear();
>> > odbcDataAdapter->selectCommand->Parameters->item["something"]->value =
>> > somevalue; //for filtering what i want to see
>> > odbcDataAdapter->fill(dataset);
>> >
>> > Can anyone help me with what might work?
>> >
>> > Thanks in advance,
>> >
>> > Peter
>>
>>
>>