I need to save from table to Calc

Creating tables and queries
Post Reply
User avatar
ypersyntelykos
Posts: 107
Joined: Tue Jul 28, 2015 6:31 pm

I need to save from table to Calc

Post by ypersyntelykos »

hellow i create a database
this database they use 4 different user which put new records or delete some records or change some records
i create a form for new records and another form for change/delete records
all this save it in one table so
i need to save all the data from this table in a sheet of calc how can i do it with a button from these forms ??

thanks
OpenOffice 4.1 + LibreOffice 5 on Windows Vista + XP
OpenOffice 4.1 + LibreOffice 5 on Linux mint 17,2
User avatar
ypersyntelykos
Posts: 107
Joined: Tue Jul 28, 2015 6:31 pm

Re: i need to save from table to calc

Post by ypersyntelykos »

any suggestion ??
OpenOffice 4.1 + LibreOffice 5 on Windows Vista + XP
OpenOffice 4.1 + LibreOffice 5 on Linux mint 17,2
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: i need to save from table to calc

Post by Villeroy »

Register your database.
Open the Calc document or Calc template.
Hit F4
Drag the table icon into a sheet. Now the data are linked to the database.
Add (conditional) formatting, charts, calculations, whatever.
Save the Calc document.
################################
After the database table has changed, open the Calc document (you may use an URL button on a form)
menu:Edit>Refresh

Auto-open macro to refresh all import ranges:

Code: Select all

Sub onOpen(e)
dr = e.Source.DatabaseRanges
for each db in dr
db.refresh()
next 
End Sub
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Post Reply