« Making Audio CD Copies on Mac OS | Main | Old School Programing: Basic-256 »
June 03, 2009
Funky Error Code Using Perl and Win32::ODBC
While working on a perl script today, I came accross a strange error message from Win32::ODBC.
[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.
Now in the SQL statement, I was passing in the following VBA function:
DateDiff( interval, date1, date2, [firstdayofweek], [firstweekofyear] )
When I passed in DateDiff( "d", date1, date2), I received an error. So I left off the double quotes and passed in DateDiff( d, date1, date2), which still failed.
Solution: Pass it in with single quotes.
DateDiff( 'd', date1, date2)
--Chris
Posted at 05:16 PM in Software | Permalink
TrackBack
TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d8341f85d553ef011570bcf52f970b
Listed below are links to weblogs that reference Funky Error Code Using Perl and Win32::ODBC:
