Hi all,
I used the below link to get the code to get the contents of MS Access table. In the link below go to "Putting it all together section"
http://sunsite.berkeley.edu/ead/tools/eaddb/fundamentals.html.
The problem is that i get an error
Can't call method "value" on an undefined value at my_program.pl line + 9.
The code is
my $value = $RS-> Fields($field)->value;
so i checked on the internet if anyone else found the same problem. I found a link which had given a solution too. The link is http://aspn.activestate.com/ASPN/Mail/Message/perl-win32-database/1700169 The solution given was if you want to access an object's property you have to put braces around the property. so Line 24:
my $value = $RS-> Fields($field)->value;
should be: Line 24:
my $value = $RS-> Fields($field)->{value};
I tried the above but still i get the error.
20070815 Janitored by Corion: Added formatting, code tags, as per Writeup Formatting Tips
In reply to Connecting to MS Access by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |