# Access table outside the form

**URL:** <https://forum.servoy.com/t/access-table-outside-the-form/16816>\
**Category:** Classic Servoy\
**Created:** [December 4, 2012, 12:32pm UTC](https://forum.servoy.com/t/access-table-outside-the-form/16816 "2012-12-04T12:32:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![felipebortoli017](https://avatars.discourse-cdn.com/v4/letter/f/c57346/32.png) [@felipebortoli017](https://forum.servoy.com/u/felipebortoli017)\
**Post date:** [December 4, 2012, 12:32pm UTC](https://forum.servoy.com/t/access-table-outside-the-form/16816/1 "2012-12-04T12:32:09Z")

</div>

I have a form  
This form is not connected to table  
I need to access a table in the Database  
How do in SQL?  
EXAMPLE  
There is a table “A” where I need to put a new value  
To find the value  
I will table B  
and see what value is this field  
See table B  
that has a value and then update it based  
save table B  
and bring this new value to the table “A”  
save table A

Help me

---

<div class="post-metadata">

**Author:** ![david](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@david](https://forum.servoy.com/u/david)\
**Post date:** [December 5, 2012, 4:37am UTC](https://forum.servoy.com/t/access-table-outside-the-form/16816/2 "2012-12-05T04:37:28Z")

</div>

Checkout databaseManager.getFoundSet(“server”, “table”) to get and manipulate foundsets without form binding. Some random sample code:

```auto
var page = databaseManager.getFoundSet("sutra_cms","web_page")
page.find()
page.id_page = site.id_page__home
var count = page.search()
if (count != 1) {
	obj.error.code = 404
	obj.error.message = "No default page specified for this site"
	return
}
else {
	pageID = page.id_page
	databaseManager.refreshRecordFromDatabase(page, 0)
}

```
