OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

SQL Requests in cells

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc
View previous topic :: View next topic  
Author Message
amiller@bigkaiser.com
Newbie
Newbie


Joined: 16 Feb 2006
Posts: 1

PostPosted: Thu Feb 16, 2006 2:03 pm    Post subject: SQL Requests in cells Reply with quote

I have been using the excel SQL.REQUEST function to look up item description, prices, etc. from my local database in several documents. My IT department would like us to switch over to OO, but I can't figure out how to do simple SQL requests in one cell based on the data I input into another cell. I use spreadsheets to quickly check stock and do quick quotes while I'm on the phone. But more importantly I use embedded sheets in Word documents to automate our quoting.

Has anyone found a way to do a SQL request in a cell referencing data from another cell?
Back to top
View user's profile Send private message
Villeroy
Super User
Super User


Joined: 04 Oct 2004
Posts: 10106
Location: Germany

PostPosted: Sat Feb 18, 2006 4:24 am    Post subject: Reply with quote

In MSOffice you need a registered datasource to make this work. The same with OOo. There is no SQL-cell function, but you can drag some query into a sheet and then use some spreadsheet function or enhanced filter (based on cell-content) in order to do the parameter query within the spreadsheet.

When you drag a database-object into a cell, you get a "database range". This is a special kind of named cell range, saving it's source, filtering and sorting. It can be refreshed by calling "Menu:Data>Refresh".
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group