troubleshooting Question

What's wrong with this query string?

Avatar of Ned_LeB
Ned_LeB asked on
Microsoft Access
7 Comments1 Solution491 ViewsLast Modified:
I’m a newbe with databases in general (2 weeks).  I'm writing software using PERL.  The string bellow gives me the error:

DBD::ODBC::db do failed: [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1. (SQL-07002)(DBD: Execute immediate failed err=-1) at Y:\scripts\BRECON~1\DEVELO~1\nlebouth\NEW_DA~1\REBUIL~1.PL line 51.

I'm trying to update the DateStamp column for tblLibraries with the DateStamp data contained in tblExistingLibraries where the elements of the existingLibrary column of tblExistingLibraries match the elements for the Library column of tblLibraries.

What's wrong with the query?

UPDATE tblLibraries SET DateStamp = (SELECT DateStamp FROM tblExistingLibraries
          WHERE tblExistingLibraries.existingLibrary = tblLibraries.Library)
        " WHERE tblExistingLibraries.existingLibrary = tblLibraries.Library

Thanks!

Ned
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 7 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros