473,385 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Subquery returned more than 1 value

Hi,

I'm using Form and a subform control within that form. Main form is
getting data from one table(Buildings) and subform is getting data from
another table(BldgDataByFloor). but both the form and subform are
linked through a child field which is common in both the
tables(BuildingNumber).

Now, whenever I close the form I receive an error
"Subquery returned more than 1 value. This is not permitted when the
subquery follows =,!=,<,<=,>,>= or when the subquery is used as an
expression."

I'm not being able to debug and catch exactly where this error is
coming. I don't have any stored procedure or trigger written for that
form or subform.

Please if any one has faced the same error or has solution to this kind
of error then do guide me.
Thanks for any suggestions on how to solve this problem.

Nov 15 '06 #1
3 2895
If you've checked the subform control's Link Master Field and Link Child
Field properties, simply delete the subform. Save the main form. Drop the
subform back in the design of the main form and use the wizard to create the
link. HTH

Shals wrote:
>Hi,

I'm using Form and a subform control within that form. Main form is
getting data from one table(Buildings) and subform is getting data from
another table(BldgDataByFloor). but both the form and subform are
linked through a child field which is common in both the
tables(BuildingNumber).

Now, whenever I close the form I receive an error
"Subquery returned more than 1 value. This is not permitted when the
subquery follows =,!=,<,<=,>,>= or when the subquery is used as an
expression."

I'm not being able to debug and catch exactly where this error is
coming. I don't have any stored procedure or trigger written for that
form or subform.

Please if any one has faced the same error or has solution to this kind
of error then do guide me.
Thanks for any suggestions on how to solve this problem.
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200611/1

Nov 15 '06 #2
I tried doing that, but it didn't help :-( anyother suggestions!!!
kingston via AccessMonster.com wrote:
If you've checked the subform control's Link Master Field and Link Child
Field properties, simply delete the subform. Save the main form. Drop the
subform back in the design of the main form and use the wizard to create the
link. HTH

Shals wrote:
Hi,

I'm using Form and a subform control within that form. Main form is
getting data from one table(Buildings) and subform is getting data from
another table(BldgDataByFloor). but both the form and subform are
linked through a child field which is common in both the
tables(BuildingNumber).

Now, whenever I close the form I receive an error
"Subquery returned more than 1 value. This is not permitted when the
subquery follows =,!=,<,<=,>,>= or when the subquery is used as an
expression."

I'm not being able to debug and catch exactly where this error is
coming. I don't have any stored procedure or trigger written for that
form or subform.

Please if any one has faced the same error or has solution to this kind
of error then do guide me.
Thanks for any suggestions on how to solve this problem.

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200611/1
Nov 16 '06 #3
Did you try recreating the main form too? You have absolutely no code
attached to either form so it can't be that (although bad code somewhere else
might be causing a problem - do a compile project to find out). Did you
check all field and control names for reserved words? Compact and Repair
probably isn't of any help either. One other thing that you can try is to
build a query to feed the form instead of relying on Access's subform. I'm
sorry I can't be of more help.

Shals wrote:
>I tried doing that, but it didn't help :-( anyother suggestions!!!
>If you've checked the subform control's Link Master Field and Link Child
Field properties, simply delete the subform. Save the main form. Drop the
[quoted text clipped - 25 lines]
>Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200611/1
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200611/1

Nov 17 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: leegold2 | last post by:
I tried what's below, seemed OK, so I replaced an "IN" for the "=" in the subquery below because of the subquery's error message. I thought w/"IN" I'd get three (3) records returned as expected....
2
by: Nachi | last post by:
Hi, Urgent Help appreciated.... I am getting resultset with first condition and when try to get the resutlset from second condition i am getting the above error in SQL200. I know that i am...
4
by: Kenny G | last post by:
Below is a query that I currently have. I need to produce a subquery so that the top five of the CodeCount is returned. I appreciate your help. SELECT .PX_SURGEON, .PX_CODE, Count(.PX_CODE)...
5
by: Rod | last post by:
I have a client site where the code below has been working happily for at least four months. The site is using SQL Server 7. The code is ASP.NET Last week an error appeared related to the...
2
by: reap76 | last post by:
I am running the following query: if (select IntExternalAccountID from ExternalAccount) = (select IntExternalAccountID from InternalAccount) select * from InternalAccount where AccountPurpose=2 ...
0
by: fubaba | last post by:
hi, i execute a store procedure got Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.'...
0
by: abednegoo | last post by:
Hi All, I tried to find the solution for my problem, but i couldn't find it. If my problem is already solved somewhere, please provide me the link... I'm not a developer myself, but the...
4
by: hdigital | last post by:
I have read quite a bit on the 'Subquery returned more than 1 value' I understand why and seems obvious, but as I do want multiple records returned I am unsure how to re write this, this looks...
3
by: jideesh | last post by:
---------------trigger code create trigger DeletepurchaseItems on table_purchaseitems for delete,update as begin select * from deleted update table_STOCK set ostock=(ostock-(select sqty from...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.