I have a database with a table in it (LO 7.5 on win 11) that has several columns such as membership no, first name, last name, date, last visit, photo (an image field) and about 200 records/rows.
I have a writer document with a table in it. when that document loads, i need it to AUTOMATICALLY fill in the table with some of the data from that database (such as last name, first name, and photo), selecting the record where the membership no is the same as the filename (which can only be one of the records).
First, I am not a coder and won’t pretend to be. Whenever i try to do it myself, i run into 3 problems:
- getting the file name and using it to select the database record number in writer
- Inserting the image into the table. Every time i try to, all i get is “” in place of the actual image, and I have been unable to find any way to actually get the image into the writer document (although it’s there in the database form i’m using for data entry)
- Making a calculation in writer using a formula to determine how many days have past since the member’s last visit, which i can easily do with the formula “=INT(SUM(-)/365)” however, if either of those table cells is a database field, It always returns “Expression Is Faulty” but works fine when there text (as opposed to a field which could be updated) in the table cells.
I give up, conceding that I don’t have the coding experience to even write a macro to do it and that what documentation i can find of the Libre Office BASIC macro language is too vague for me to understand.
Could anyone point me to a simple/extensive library of macros that maybe could be combined to do this? or some “LO macros for dummies” level literature? Or anything else to help me get it to work?