Question : Access 2003 - ODBC --Call failed,


I use Access as a front end for reporting out of our ERP system. I have a load of tables setup via ODBC which connect to the data and help me run reports.

Recently I have been recieving the error:
ODBC --Call failed
          OK
MS Access cant open the table in datasheet view
          OK
A temporary solution I have found to this problem is to right click on a table --> Linked table manager and update the tables I plan to use. This will only work for a few minutes and I will start receiving this error again.
This solution also wont work for end users as all they do is click on the report they were after (Then complain when they recieve the "ODBC Call Failed" error)

I could also take copies of the tables (speed up report speeds) but this is only possible in certain situations (when the user doesn't require live data)

I have setup some software called Dataflex to access the information from our ERP system.
Under Administrative Tools --> Data Sources(ODBC) --> I have setup a datasource DataFlex Data 32 using hte dataflex driver linking to the path: k:\cba2000\data;k:\cba2000\data\co1
Dataflex has been working perfect for the last 4 years or so and I have no problem using CBA to access these files

Answer : Access 2003 - ODBC --Call failed,

Hello,
PHP 5 comes with built-in class called cURL,which is an extension for command line utility cURL that is "wget on steroids".It supports .htaccess authentication.
Suppose that your URL of protected directory is:
http://192.168.1.1/cgi-bin/test.cgi'
username:  3xtr3m3d
password: secret


From linux comand line, to get file test.cgi you would write:
curl http://3xtr3m3d:secret@192.168.1.1./cgi-bin/test.cgi   > test.cgi

From php code,this is the code that will read the file from remote, HTTP-autentication protected directroy,and put it in a string. With this string you can continue, whether you would like to write it to a file,or anything you want.So this is a basic,and I think it is pretty much self-explanatory:




1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
<?php

$url="http://192.168.1.1./cgi-bin/test.cgi";

 $options = array(
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_USERPWD        => "3xtr3m3d:secret",
    );



$ch      = curl_init( $url );

curl_setopt_array( $ch, $options );
    $content = curl_exec( $ch );
    curl_close( $ch );

echo $content;
Random Solutions  
 
programming4us programming4us