Search found 1548 matches
- Fri Apr 19, 2024 7:40 am
- Forum: Forms
- Topic: Calculations in Form
- Replies: 5
- Views: 472
Re: Calculations in Form
Form where I can enter up to 8 values, Sum the values and put the result in a table field. The values will not be put into a table and would be discarded. Calculating Sums in a database is relatively simple using Queries but this statement makes the assumption that there will never be an entry erro...
- Wed Apr 17, 2024 3:01 am
- Forum: Tables & Queries
- Topic: Form from Query - Numeric field entered as Currency Field
- Replies: 1
- Views: 456
Re: Form from Query - Numeric field entered as Currency Field
Open the Form document in the Edit/Design Mode <Ctrl>Click on a problematic control then Right Click and select Control to open the Properties dialog If the dialog shows Properties: Currency Field Right click again and select Replace with > Numerical Field On the General tab of the Properties: Numer...
- Mon Apr 01, 2024 1:33 am
- Forum: Forms
- Topic: Form window ignores saved size on open
- Replies: 4
- Views: 1022
Re: Form window ignores saved size on open
Actually, Base Form documents are Writer pages. That allows one to create stand alone forms where the user can display and edit database records without directly opening the Base file.
[Tutorial] Standalone Forms / Switchboard
[Tutorial] Standalone Forms / Switchboard
- Sun Mar 31, 2024 4:35 am
- Forum: Forms
- Topic: Form window ignores saved size on open
- Replies: 4
- Views: 1022
Re: Form Window Ignores Saved Size On Open
OO is working properlythey open to the correct size,
Your OS is overriding OObut then expand to a larger different size: maybe a default size?
Perhaps this will help
https://www.google.com/search?client=fi ... ize+on+mac
- Sat Mar 23, 2024 11:37 pm
- Forum: Tables & Queries
- Topic: [Solved] Add a value to results of a query
- Replies: 10
- Views: 1277
Re: Add a value to results of a query
To a query of your table add: (CASE WHEN "NetScore" = 1 THEN 1 WHEN "NetScore" = 0 THEN 2 WHEN "NetScore" = -1 THEN 4 WHEN "NetScore" = -2 THEN 6 ELSE 0 END) as "Points" to display the Points according to the plan you described. According to the rule...
- Fri Mar 22, 2024 2:44 am
- Forum: Tables & Queries
- Topic: [Solved] Subtraction in a simple query
- Replies: 8
- Views: 1010
Re: Subtraction in a simple query
With HSQL you need to enclose all but the simplest field and table names in double quotes. Also verify that the both the fields are the same type, i.e. Integer, Decimal, Numeric or Float. Unlike spreadsheets databases use strong type checking which might explain why the calculation works in Excel bu...
- Thu Mar 21, 2024 10:31 pm
- Forum: Tables & Queries
- Topic: [Solved] Subtraction in a simple query
- Replies: 8
- Views: 1010
Re: Subtraction in a simple query
What type of database do you have? Look along the bottom of the main Base window. Might be something like Embedded database HSQL database engine.
- Wed Mar 20, 2024 12:59 am
- Forum: Tables & Queries
- Topic: [Solved] Subtraction in a simple query
- Replies: 8
- Views: 1010
Re: Subraction in a simple query
Try "Hole 1 Actual" - "Hole 1 Par"
Including spaces in field and table names will cause all sorts of grief, either eliminate them (Hole1Actual) or replace them with an underscore (Hole_1_Actual)
Including spaces in field and table names will cause all sorts of grief, either eliminate them (Hole1Actual) or replace them with an underscore (Hole_1_Actual)
- Tue Jan 30, 2024 10:39 pm
- Forum: Base
- Topic: Advice on where to start and steps to take
- Replies: 1
- Views: 1004
Re: Advice on where to start and steps to take
There are numerous good books on database design but I can't say I have a favorite to recommend. Use whatever is easily available to you. If you want to implement your database in Base with the built in HSQL back end then a bit of advice. If you choose to use the Embedded HSQL be sure to adhere to a...
- Fri Jan 12, 2024 7:49 am
- Forum: Base
- Topic: [Solved] Error in script file: out of memory
- Replies: 5
- Views: 1363
Re: Error in script file: out of memory
Embedded Base databases where everything is stored in a single zip archive are susceptible to data corruption. 2.7 MB is probably larger than many but I have several larger including one that is 38 MB that loads without a hitch. The larger the table data the longer it takes to complete the zip proce...
- Mon Dec 18, 2023 9:36 pm
- Forum: MS Windows
- Topic: [Solved] Unable to install Java Runtime Environment
- Replies: 10
- Views: 3151
Re: Having problems running macros
Link to Oracle x86 download https://www.oracle.com/java/technologies/downloads/#java8-windows Or I installed the JRE .msi version of this on Windows 11 and so far is working. https://adoptium.net/temurin/releases/?version=11 Another option is Libre Office https://www.libreoffice.org/download/downloa...
- Mon Dec 18, 2023 7:07 am
- Forum: MS Windows
- Topic: [Solved] Unable to install Java Runtime Environment
- Replies: 10
- Views: 3151
Re: Having problems running macros
On Windows 11 The folder C:\Program Files holds the installed 64 bit software The folder C:\Program Files (x86) holds the installed 32 bit software Open Office is a 32 bit application and is stored in Program Files (x86) . You will need the (x86) version of Java for Open Office. In Calc navigate to ...
- Sun Nov 12, 2023 4:37 am
- Forum: Base
- Topic: The driver class org.hsqldb.jdbcDriver could not be load
- Replies: 3
- Views: 2174
Re: The driver class org.hsqldb.jdbcDriver could not be load
I just want to change the path to the new path but impossible to understand where to change that ? I suspect that the installer stores path somewhere in the Windows Registry making it difficult to modify. If the JRE was installed with the Windows installer it should be listed at Tools>Options>OpenO...
- Sun Oct 29, 2023 12:10 am
- Forum: Tables & Queries
- Topic: [Solved] Syntax error if query run from F5 Edit window
- Replies: 6
- Views: 3683
Re: Query Issue
I’ve tried right clicking on your query, selecting Edit to open in the Query Design GUI and when I press F5 it displays the results without any error messages.
Windows 10
OO 4.1.14
LO 7.4.5.1 (x64)
Linux Mint
LO 6.4.7.2
Perhaps a platform issue?
I get the same resultsWindows 10
OO 4.1.14
LO 7.4.5.1 (x64)
Linux Mint
LO 6.4.7.2
Perhaps a platform issue?
- Sat Oct 21, 2023 1:17 am
- Forum: Base
- Topic: [Solved] Ascending or descending list...
- Replies: 3
- Views: 3408
Re: Ascending or descending list...
to cover multiple items with the same purchase date ORDER BY "Story"."date of purchase", "Products"."brand" ASC or maybe ORDER BY "Story"."date of purchase", "Products"."unit price" ASC or list most expensive items first...
- Tue Oct 03, 2023 5:49 am
- Forum: Forms
- Topic: Dialog as a control
- Replies: 2
- Views: 2976
Re: Dialog as a control
Similar question with a solution reported
https://ask.libreoffice.org/t/create-tr ... -base/9502
https://ask.libreoffice.org/t/create-tr ... -base/9502
- Fri Sep 22, 2023 2:19 am
- Forum: Base
- Topic: [Solved] Filtering Data in a Form
- Replies: 24
- Views: 5651
Re: Filtering Data in a Form
A relatively simple coded Macro can eliminate the push button, if that's the issue.. See form document Selection3 in the attached demonstration. The problem with coded macros is that they can be difficult to write and once working, easy to break. A seemingly minor change to the form document can som...
- Mon Sep 18, 2023 11:47 pm
- Forum: Base
- Topic: [Solved] Filtering Data in a Form
- Replies: 24
- Views: 5651
Re: Filtering Data in a Form
Another approach based on the example uploaded by Nick N,
Form document Selection2 allows up to 3 selections.
Form document Selection2 allows up to 3 selections.
- Mon Sep 11, 2023 6:21 am
- Forum: Base
- Topic: [Solved] Filtering Data in a Form
- Replies: 24
- Views: 5651
Re: Filtering Data in a Form
Nick G Two more suggestions. The ListBox query returns multiple identical choices which can be confusing for the user and make long lists even longer! Instead of a simple SELECT use SELECT DISTINCT to list each choice only once. Filter tables should not hold more that one row of data. But in the Fil...
- Sun Sep 03, 2023 3:59 am
- Forum: Base
- Topic: Setting up simple relational database for membership system
- Replies: 17
- Views: 10309
Re: Setting up simple relational database for membership system
Database design can be tricky. When get to a design, build some Forms to test it. You wouldn't be the first to scrap the original design and start over with newly learned lessons. Often multiple times. The table Mitgliedshaften appears to designed to reflect a Many to Many relationship between the o...
- Mon Aug 21, 2023 12:02 am
- Forum: Base
- Topic: Help with Split HSQLDB - existing LibreOffice Base project
- Replies: 10
- Views: 3629
Re: Help with Split HSQLDB - existing LibreOffice Base project
Be aware some compatibility issues (usually minor) have been reported when using Base with HSQL versions 2.5.0 and above. I currently have two Base databases using HSQL 2.7.0 and haven't run into any problems ... so far. If you think you want to try a more recent version of HSQL than 2.4.3 Be sure y...
- Tue Jul 25, 2023 5:50 am
- Forum: Base
- Topic: [Solved] 500 records in table; only 40 in form view
- Replies: 6
- Views: 3310
Re: Migrate from MS Access Problem
When Base first loads a long data set like yours it initially only loads a small subset of the data, usually about 40 or 50 rows of data. As you scroll down it gradually adds rows. If you scroll down 100 rows or so and then scroll up, OO Base gets confused and displays all the rows with the same dat...
- Sun Jul 23, 2023 1:16 am
- Forum: Base
- Topic: [Solved] Prompted for User Input With Data Source Without User Input
- Replies: 4
- Views: 3086
Re: Prompted for User Input With Data Source Without User Input
It appears that both Form documents that begin with "All Orders" have 2 Forms named MainForm. Open either one of the Form Documents in the Design/Edit mode and on the Form Design Toolbar select the Form Navigator. One MainForm has all the controls attached to it while the other has no cont...
- Sat Jul 22, 2023 9:52 pm
- Forum: Base
- Topic: [Solved] Prompted for User Input With Data Source Without User Input
- Replies: 4
- Views: 3086
Re: Prompted for User Input With Data Source Without User Input
Based on the format of the query in your question I'm assuming you are using an Embedded HSQL database. On a few occasions when I've encountered weird behavior I've used Windows Copy & Paste to made a copy of the .odb file and the copy has worked correctly. If that fails to help then upload a sa...
- Sat Jul 22, 2023 9:35 pm
- Forum: Base
- Topic: [Solved] LibreOffice Base: Index not found error
- Replies: 7
- Views: 3359
Re: LibreBase Index not found error
I doubt there is a problem with your installation but I need correct my earlier statement about SCHEMA queries and Embedded databases. The following query should list all the constraints SELECT * FROM INFORMATION_SCHEMA.SYSTEM_TABLE_CONSTRAINTS For your "unique" issue, look for tables in t...
- Sun Jul 16, 2023 2:56 am
- Forum: Base
- Topic: [Solved] LibreOffice Base: Index not found error
- Replies: 7
- Views: 3359
Re: LibreBase Index not found error
Embedded HSQL doesn't support SHEMA queries, so trouble shooting your Index issue will be difficult. My suggestion would be to create a new table without any added Indexes then copy your data into the new table. A Unique constraint can be added to a table using SQL commands at Tools>SQL The basic fo...
- Sun Jun 25, 2023 6:54 am
- Forum: Tables & Queries
- Topic: SQL Alias Syntax for SubQuery in LibreOffice Base
- Replies: 5
- Views: 3765
Re: SQL Alias Syntax for SubQuery in LibreOffice Base
No.The question is whether it is possible to do this without Subquery ...
Base is not a MSAcess clone.
Using non-standard (ISO) syntax like that locks you into MSAccess, which I am sure is part of the Microsoft marketing strategy.
- Fri Jun 16, 2023 7:11 am
- Forum: Tables & Queries
- Topic: SQL Alias Syntax for SubQuery in LibreOffice Base
- Replies: 5
- Views: 3765
Re: SQL Alias Syntax for SubQuery in LibreOffice Base
To use an alias like C in more than one term of the query usually requires it to be defined in a sub-query. The sub-query will probably need at least one more term to insure that it returns a single value. I haven't tested it but it might be something like select M.C, (M.C + A) D from A, B, (select ...
- Fri May 26, 2023 10:47 pm
- Forum: Tables & Queries
- Topic: SQL result type CASE WHEN... THEN... expected as a date but is integer
- Replies: 7
- Views: 3755
Re: SQL result type CASE WHEN... THEN... expected as a date but is integer
Dates are be confusing. Dates are stored in the database as a Double Value. The whole number part is the days since (or before if negative) Dec 30, 1899 When the Base front end displays the results of a query involving a field of Date type, it converts that number into a more readable format. When y...
- Tue May 23, 2023 10:21 pm
- Forum: Forms
- Topic: [Solved] How to open a recordset in a Basic script
- Replies: 7
- Views: 4987
Re: [Solved] How to open a recordset in a Basic script
Isn't there some construct like "currenntDB"? Not built in but this function reportedly will do much the same. Function ThisConnection2() As Object REM GET ACTIVE CONNECTION OF THE FIRST FORM - Similar to MS Access CurrentDB() REM usage Conn = ThisConnection2() On Error Goto HandleErr Dim...