954,525 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

updating fields in MS Access

hi,

I am having problem in updating tables in MS Access. The field which I
want to update is of DATE type.

here is the code..

#! C:\Perl\bin\perl.exe

use Win32::ODBC;

my $db = new Win32::ODBC('ServerStatistics');

$q="select distinct(build_date) from wdf_history";
$db->Sql($q);
while($db->FetchRow)
{
        $s = $db->Data();
        print $s;

}

$q = "select * from wdf_history where build_date='$s'";

while($db->FetchRow)
{
        $s = $db->Data();
        print $s;

}

$q="update wdf_history set build_date='2007-02-27' where
build_date='$s'";
$db->Sql($q);

$q = "select * from wdf_history where build_date='$s'";

while($db->FetchRow)
{
        $s = $db->Data();
        print $s;

}


This does not get updated. Why? what I should do??

Thank you,
Regards,
kath.

katharnakh
Posting Whiz in Training
237 posts since Jan 2006
Reputation Points: 19
Solved Threads: 34
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You