Hi everyone!
I am working on a database in OpenOffice Base and need help creating a query. My task is to create a query called 'canteen' that allows editing data in the 'students' table. However, I do not want the query to enable adding or deleting records.
I know the ways to edit, add, and delete data in queries, but I do not know how to restrict the query to only allow editing data.
Can someone help me with this task? I would appreciate any tips and examples.
please help quickly
[Solved] Allow record edits but not inserts/deletes
[Solved] Allow record edits but not inserts/deletes
Last edited by MrProgrammer on Sat Nov 09, 2024 4:47 pm, edited 2 times in total.
Reason: Tagged ✓ [Solved] Must use Base form; not possible with query -- MrProgrammer, forum moderator
Reason: Tagged ✓ [Solved] Must use Base form; not possible with query -- MrProgrammer, forum moderator
OpenOffice 4.1.15 on Windows 10
- Nicholas59
- Banned
- Posts: 26
- Joined: Sat Oct 12, 2024 1:15 pm
Re: Create a query in OpenOffice Base that allows only editing data, without the ability to add or delete records
Hi,
After having read your post, even though it would have been kind of you to add an odb file, according to my experience, if I would have had to do a query I could do it without worrying, because the query displays only what you state in the code, whilst i could choose that matter by building a form.
Your comment would be highly appreciated.
After having read your post, even though it would have been kind of you to add an odb file, according to my experience, if I would have had to do a query I could do it without worrying, because the query displays only what you state in the code, whilst i could choose that matter by building a form.
Your comment would be highly appreciated.
Libre Office 7.3.7 on Ubuntu 22.04
Re: Create a query in OpenOffice Base that allows only editing data, without the ability to add or delete records
ok, I'm sending the file and I don't want it to be in the form, I just want it in the query, if that's possibleNicholas59 wrote: ↑Sat Nov 02, 2024 3:40 pm Hi,
After having read your post, even though it would have been kind of you to add an odb file, according to my experience, if I would have had to do a query I could do it without worrying, because the query displays only what you state in the code, whilst i could choose that matter by building a form.
Your comment would be highly appreciated.
- Attachments
-
- uczesie.odb
- (3.72 KiB) Downloaded 46 times
OpenOffice 4.1.15 on Windows 10
- Nicholas59
- Banned
- Posts: 26
- Joined: Sat Oct 12, 2024 1:15 pm
Re: Create a query in OpenOffice Base that allows only editing data, without the ability to add or delete records
@Mr. Nulekbtw
So far, so good. You could reach your goal by creating a view. See hereafter.
So far, so good. You could reach your goal by creating a view. See hereafter.
- Attachments
-
- uczesie-rev1.odb
- (3.75 KiB) Downloaded 39 times
Libre Office 7.3.7 on Ubuntu 22.04
Re: Create a query in OpenOffice Base that allows only editing data, without the ability to add or delete records
when I turn on the view, I cannot edit, for example, the boolean that is in the table because I only want to edit it in the queryNicholas59 wrote: ↑Sat Nov 02, 2024 7:10 pm @Mr. Nulekbtw
So far, so good. You could reach your goal by creating a view. See hereafter.
OpenOffice 4.1.15 on Windows 10
- Nicholas59
- Banned
- Posts: 26
- Joined: Sat Oct 12, 2024 1:15 pm
Re: Create a query in OpenOffice Base that allows only editing data, without the ability to add or delete records
Dear Mr. New Leg Between,
As simply as you pose questions, why don't you use the wizard to choose your fields, either with a view or a query.
You may find plenty of tutorials, which could help you in pursuing your efforts.
Do apologize not being in a position to exactly understand your needs.
Regards
As simply as you pose questions, why don't you use the wizard to choose your fields, either with a view or a query.
You may find plenty of tutorials, which could help you in pursuing your efforts.
Do apologize not being in a position to exactly understand your needs.
Regards
Libre Office 7.3.7 on Ubuntu 22.04
-
- Volunteer
- Posts: 1558
- Joined: Wed Jun 24, 2015 12:56 am
- Location: Colorado, USA
Re: Create a query in OpenOffice Base that allows only editing data, without the ability to add or delete records
As the name implies a Query can only SELECT (display) table data, it cannot be used for adding, deleting or editing table data. There are other SQL commands such as INSERT, UPDATE and DELETE for changing table data but they must be executed from TOOL>SQL to communicate directly with the underlying database engine. Queries can be used as part of those commands.I know the ways to edit, add, and delete data in queries, but I do not know how to restrict the query to only allow editing data.
While very effective, that mode of communication can be clumsy and requires good command of the SQL language.
Using a Base Form to do the communication can simplify the process.
Form Properties can be set to allow Editing records but not Adding or Deleting them, so that will likely be your best option.
You can further limit a users ability to make undesired changes by creating Standalone Forms where the database tables are hidden from the user.
If your problem has been solved, please edit this topic's initial post and add "[Solved]" to the beginning of the subject line
Apache OpenOffice 4.1.14 & LibreOffice 7.6.2.1 (x86_64) - Windows 10 Professional- Windows 11
Apache OpenOffice 4.1.14 & LibreOffice 7.6.2.1 (x86_64) - Windows 10 Professional- Windows 11