Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 15th, 2004, 04:54 AM
Registered User
 
Join Date: Mar 2004
Location: London, , United Kingdom.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default "at most one record can be returned by this subque


Getting the following error message
"at most one record can be returned by this subquery"

unsure why subquery can only retrun one value.

Any help greatly appreciated. Attached is the query sql.

DELETE tblAF110Paid.AF110PaidID
FROM tblAF110Paid
WHERE (((tblAF110Paid.AF110PaidID)=(select * from qryremoveaf110final)));


thanks.

Reply With Quote
  #2 (permalink)  
Old June 15th, 2004, 07:40 AM
Friend of Wrox
Points: 2,473, Level: 20
Points: 2,473, Level: 20 Points: 2,473, Level: 20 Points: 2,473, Level: 20
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2004
Location: India
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts
Default

I think the query should be :

DELETE tblAF110Paid.AF110PaidID
FROM tblAF110Paid
WHERE (((tblAF110Paid.AF110PaidID) in (select * from qryremoveaf110final)));

and moreover,
(select * from qryremoveaf110final) will not work if this table has more than one column.

Please specify the column instead of *





Om Prakash
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple recordsets returned BCullenward Classic ASP Basics 7 July 28th, 2006 04:16 PM
size of the dataset returned aldwinenriquez ASP.NET 1.0 and 1.1 Professional 0 July 6th, 2005 04:43 AM
OCIEnvCreate returned -1 amagoosla ADO.NET 3 June 9th, 2005 06:27 AM
Returned Error chuck BOOK: Beginning VB.NET Databases 6 February 13th, 2005 04:07 PM
Records not returned with where clause Trojan_uk SQL Server 2000 2 December 4th, 2003 10:03 AM



All times are GMT -4. The time now is 07:20 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.