in reply to Re: Win32::ODBC Multiple Queries
in thread Win32::ODBC Multiple Queries
The runtime error you are getting may have to do with how Access checks/binds the correct data types prior to executing the SQL. If the data type/size don't match up, the SQL won't execute. In short, if they other gent's suggestions didn't solve your problem... give DBI a try. And, I just started adding use strict; to ALL my scripts after getting hollered at enough... and it really helps :)if($query eq '*'){ $sth = $db->prepare("SELECT * FROM data ORDER BY[$orderkey]"); $sth->execute(); ... if($query eq $name ){ $sth = $db->prepare("SELECT ? FROM data order by [$orderkey]"); $sth->execute($name);
|
|---|