Cannot create new record within Form

Creating and using forms
Post Reply
noahw86
Posts: 3
Joined: Mon Mar 11, 2013 8:44 pm

Cannot create new record within Form

Post by noahw86 »

I am having an issue where we cannot add new records within a form. The form is located both locally and over the network via network shares.

Whenever we open the Form, it'll open Base just fine, and we can see the Form in the Forms field, but after opening the Form from there and trying to create a new record it gives the error message in this photo:
img20130311141311.jpg
What could be causing this issue and how would I go about resolving it?

thanks
Last edited by Hagar Delest on Tue Mar 12, 2013 3:07 pm, edited 1 time in total.
Reason: pic embedded.
OpenOffice 3.3 on Windows 7
User avatar
Villeroy
Volunteer
Posts: 31365
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Cannot create new record within Form

Post by Villeroy »

The error message tells it all. It does even tell you what you are supposed to do.
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
noahw86
Posts: 3
Joined: Mon Mar 11, 2013 8:44 pm

Re: Cannot create new record within Form

Post by noahw86 »

Villeroy wrote:The error message tells it all. It does even tell you what you are supposed to do.
Well golly-gee-willickers! Why didn't I think of that. :roll:

1) you cannot just simply enter data into the specified field
2) it happens when it shouldn't and it's random, meaning it can happen and then another occasion, not


I'm also getting an error on another unit that says a specific user "cannot be found."

Any ideas other than smart remarks of pointing out the obvious will be greatly appreciated.

Thanks
OpenOffice 3.3 on Windows 7
User avatar
DACM
Volunteer
Posts: 1138
Joined: Tue Nov 03, 2009 7:24 am

Re: Cannot create new record within Form

Post by DACM »

Welcome noahw86,
noahw86 wrote:The form is located both locally and over the network via network shares.
Since you're running in a client-server environment, perhaps using a standalone Form, this could be caused by a variety of things including OS-level: file locking, database-level: user-roles, operating mode (single- or multi-user), table-level: constraints, referential integrity, lack of an auto-incrementing primary key...etc.

For starters, can we presume you're running a the database in a proper multi-user mode through a database-server like HSQLDB, MySQL, etc?

Otherwise, if you're accessing a single-user, 'embedded database' stored within a Base .odb, then you'll be fighting OS-level file locks if you attempt to open the Form on multiple computers simultaneously, or even if you're running the Quickstarter on any connected computer used for database access.
AOO 4.1.x; LO 4.2.x; Windows 7/8 64-bit
Warning: Avoid embedded databases --> Solution: Adopt a portable 'split database' folder
Soli Deo gloria
User avatar
Villeroy
Volunteer
Posts: 31365
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Cannot create new record within Form

Post by Villeroy »

noahw86 wrote:
Villeroy wrote:The error message tells it all. It does even tell you what you are supposed to do.
Well golly-gee-willickers! Why didn't I think of that. :roll:

1) you cannot just simply enter data into the specified field
2) it happens when it shouldn't and it's random, meaning it can happen and then another occasion, not


I'm also getting an error on another unit that says a specific user "cannot be found."

Any ideas other than smart remarks of pointing out the obvious will be greatly appreciated.

Thanks
And why don't you tell us? The most trivial reason would be that you simply forgot to add the form control for that mandatory field. It could be anything but you do not even tell us the database you are working with.
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
noahw86
Posts: 3
Joined: Mon Mar 11, 2013 8:44 pm

Re: Cannot create new record within Form

Post by noahw86 »

DACM wrote:Welcome noahw86,
noahw86 wrote:The form is located both locally and over the network via network shares.
Since you're running in a client-server environment, perhaps using a standalone Form, this could be caused by a variety of things including OS-level: file locking, database-level: user-roles, operating mode (single- or multi-user), table-level: constraints, referential integrity, lack of an auto-incrementing primary key...etc.

For starters, can we presume you're running a the database in a proper multi-user mode through a database-server like HSQLDB, MySQL, etc?

Otherwise, if you're accessing a single-user, 'embedded database' stored within a Base .odb, then you'll be fighting OS-level file locks if you attempt to open the Form on multiple computers simultaneously, or even if you're running the Quickstarter on any connected computer used for database access.
Sorry, I'll clarify a little more. The "form" that I was referring to that is located both locally and on the network was the .odb file but that only opens the application and connects to the HSQLDB.

And yes, it is being run as a HSQLDB. I meant to include that originally. Also, worth noting, it isn't access permissions (I don't think) because it happens even when attempting to access it locally.
OpenOffice 3.3 on Windows 7
Post Reply