Database Management
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDatabase Management

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old July 22nd, 2003, 09:23 AM
gothrog gothrog is offline
Micro Junky
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: NJ
Posts: 80 gothrog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 6 m 43 sec
Reputation Power: 6
Muliple Updates in Access 2000

I want to update multiple records in my soft_lic table, but it doesn't want to accept multiple records.

The Error:
"At Most one record can be returned by this subquery."


Query:
UPDATE soft_lic SET soft_lic.used_lic = ([soft_lic].[used_lic]-1)
WHERE (( [soft_lic].[recordnum]) =
(SELECT [PC_Soft].[recordnum] FROM PC_Soft
WHERE ([PC_Soft].[compn])=
(SELECT info_add FROM info_add_pc )))

What can I do t fix this?

Mike
__________________
The Rog

Reply With Quote
  #2  
Old July 22nd, 2003, 09:41 AM
swampBoogie swampBoogie is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Jan 2003
Location: Paris Uppland
Posts: 1,762 swampBoogie User rank is Sergeant Major (2000 - 5000 Reputation Level)swampBoogie User rank is Sergeant Major (2000 - 5000 Reputation Level)swampBoogie User rank is Sergeant Major (2000 - 5000 Reputation Level)swampBoogie User rank is Sergeant Major (2000 - 5000 Reputation Level)swampBoogie User rank is Sergeant Major (2000 - 5000 Reputation Level)swampBoogie User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 2 Weeks 4 Days 4 h 29 m 45 sec
Reputation Power: 37
Code:
UPDATE soft_lic SET soft_lic.used_lic = ([soft_lic].[used_lic]-1)
WHERE (( [soft_lic].[recordnum]) in
(SELECT [PC_Soft].[recordnum] FROM PC_Soft
WHERE ([PC_Soft].[compn]) in
(SELECT info_add FROM info_add_pc ))) 

Reply With Quote
  #3  
Old July 22nd, 2003, 12:10 PM
gothrog gothrog is offline
Micro Junky
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: NJ
Posts: 80 gothrog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 6 m 43 sec
Reputation Power: 6
thank you

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDatabase Management > Muliple Updates in Access 2000


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway