in reply to Need help with MS Access with Perl.......
In this statement you create the OLE object, or if that fails, you die with a message UNLESS it did not fail...Read that again... You want to remove the unless $dbh$dbh = CreateObject OLE "ADODB.Connection" or die "Can't create connec +tion to DataBase: $!" unless $dbh;
Why do you do a die print? All other die statements you use have just the text as a parameter, and you now you're printing it explicitly. Besides that I don't know if that would work (it may, it's perl after all), you could just remove the print and the parens (), and it should all work.$rs = $dbh->Execute( $sqlstatement ) or die print ( "Can't adminmail d +atabase problemdsds Perl says $!, DBI says ",$dbh::errstr,"");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Need help with MS Access with Perl.......
by Anonymous Monk on Jun 28, 2001 at 13:15 UTC | |
by holygrail (Scribe) on Jun 28, 2001 at 13:38 UTC | |
by Anonymous Monk on Jun 28, 2001 at 13:59 UTC |