Greetings all,
I am currently working with Access myself though I am using a System DSN instead of the DSN-less approach.
Though this is not related to your posting I would suggest using $dbh->{RaiseError} = 1 which will report your errors to you without having to call  || die $handle->errstr all the time for every method call. This may help you figure out where your issue is (db handle vs. statement handle, etc)
One other thing to keep in mind is that the return values from any given query are not what you might be expecting (at least they were not for me). For instance a successful Select query returns me -1 (which in VB is true) even if there was nothing returned, whereas a successful Insert statement returns me 1 (which Im assuming is how many rows were affected); all of this is coming from the method calls on prepared statment handles.
Coming from MySQL mainly this took some getting use to. That being said, use the RaiseError property and post what errors come back, we should be able to help you more after that.

-InjunJoel
"I do not feel obliged to believe that the same God who endowed us with sense, reason and intellect has intended us to forego their use." -Galileo

In reply to Re: Inserting a record into an Access database by injunjoel
in thread Inserting a record into an Access database by Doyle

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.