OK - I can do it with either
{d 'YYYY-mm-dd'} or #mm/dd/YYYY#
directly in the SQL statement. But, if I use placeholders, it craps out on me. The variables I'm using in the $sth->execute() command look correct if I print them out.

So, I'm a little stumped.

UPDATE

http://aspn.activestate.com/ASPN/Mail/Message/1438444

bind_param - looks like it could be my ticket.

I'm going to finally go eat some lunch now. I always let stuff slip when I'm stumped like this. Then, I'm starving, desperate, and in a bad mood. Typically, a user will now come up to me, and ask me to do a file restore from tape, because someone deleted something that SHOULD NOT have been in the public directory in the first place.

When I get back, I'll try the bind_param and see if I get any luck. In the meantime, if someone has any comments or encouragement, it would be great to see when I get back with a higher blood-sugar level.


In reply to Re: DBD::ODBC, Access, date comparisons by finni
in thread DBD::ODBC, Access, date comparisons by finni

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.