# Dumb Q. Whats wrong with this search?...

**URL:** <https://forum.servoy.com/t/dumb-q-whats-wrong-with-this-search/13468>\
**Category:** Classic Servoy\
**Created:** [January 19, 2011, 12:33pm UTC](https://forum.servoy.com/t/dumb-q-whats-wrong-with-this-search/13468 "2011-01-19T12:33:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kahuna](https://avatars.discourse-cdn.com/v4/letter/k/8491ac/32.png) [@Kahuna](https://forum.servoy.com/u/Kahuna)\
**Post date:** [January 19, 2011, 12:33pm UTC](https://forum.servoy.com/t/dumb-q-whats-wrong-with-this-search/13468/1 "2011-01-19T12:33:43Z")

</div>

I have a foundset search which is returning all of the records in the foundset rather than those found in the search. Much hair loss over a basic challenge. ![:oops:]( "Embarassed") ![:cry:]( "Crying or Very sad")

```auto
var DupeID = 'false'
	var fsU = databaseManager.getFoundSet('tci_admin','sec_users')
	fsU.loadAllRecords()
	var currentName = forms.tools_frm_sec_users.users_user_name
	application.output(currentName)
	fsU.find()
	fsU.user_user_name = currentName
	var count = fsU.search()
	application.output(count)
	if (count >0){DupeID = 'true'}
	if(DupeID == 'false'){databaseManager.saveData()}

```

Count always returns all records!

Feedback Appreciated

---

<div class="post-metadata">

**Author:** ![ptalbot](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/ptalbot/32/4952_2.png) [@ptalbot](https://forum.servoy.com/u/ptalbot)\
**Post date:** [January 19, 2011, 1:02pm UTC](https://forum.servoy.com/t/dumb-q-whats-wrong-with-this-search/13468/2 "2011-01-19T13:02:42Z")

</div>

Are you sure that \*\*user\_\*\*user\_name is a field in your table sec\_users?  
You seem to call it \*\*users\_\*\*user\_name a few lines above…

---

<div class="post-metadata">

**Author:** ![Kahuna](https://avatars.discourse-cdn.com/v4/letter/k/8491ac/32.png) [@Kahuna](https://forum.servoy.com/u/Kahuna)\
**Post date:** [January 19, 2011, 1:29pm UTC](https://forum.servoy.com/t/dumb-q-whats-wrong-with-this-search/13468/3 "2011-01-19T13:29:09Z")

</div>

Doh… I told you it was a dumb question - too much pressure too tight a deadline again.

Lol

As always thanks Patrick! ![:oops:]( "Embarassed")

---

<div class="post-metadata">

**Author:** ![ptalbot](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/ptalbot/32/4952_2.png) [@ptalbot](https://forum.servoy.com/u/ptalbot)\
**Post date:** [January 19, 2011, 1:35pm UTC](https://forum.servoy.com/t/dumb-q-whats-wrong-with-this-search/13468/4 "2011-01-19T13:35:04Z")

</div>

Keep you hair, man!
