A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Locked Form



 
 
Thread Tools Display Modes
  #1  
Old December 14th, 2006, 09:19 PM posted to microsoft.public.access.forms
Sprinks
external usenet poster
 
Posts: 531
Default Locked Form

I’m having frequent difficulty in getting locked out of a form. I’m new to
multiple user applications. I thought we were using Record-level locking, and
so would get locked out only if the same record were being edited at the same
time by another user. With a 15-person office, that seems unlikely.

In addition to this Timesheet application, we have another application
(which we use much more frequently) that uses a couple of the same
tables—Staff and Projects. To avoid either duplicating the effort for these
two tables or combining the two applications into one, I chose to create a
second backend file, Common.mdb, where the shared tables are stored once.
These are then linked into the front-end file. I understand that this means
the ability to enforce referential integrity is thus lost because I can’t
establish any relationships in the backend.

This may be a part of the explanation of why we get locked out of the form
when anyone has the 2nd application opened. I would appreciate any help on
record-locking in general, how to correct the current situation, and whether
it might make sense to combine these two applications into one.

Thank you.
Sprinks

Tables:

Staff
StaffID AutoNumber (PK)
FName Text
LName Text
…

TSHistory (One side of relationship w/TimeRecords)
TSID AutoNumber (PK)
PeriodBeginning Date
StaffID Integer (FK to Staff)


TimeRecords (Many side of relationship w/TSHistory)
TimeRecordID AutoNumber (PK)
TSID Integer (PK to TSHistory)
ProjectNumber Text (FK to Projects)
PeriodDay Integer (1-14)
Hours Integer
StatusID Integer (FK to Status)
InvoiceDate Date

Projects
Project Text (PK)
ProjectName Text
…

Main Form RecordSource:
SELECT Staff.FName & " " & Staff.LName AS StaffName, TSHistory.TSID,
TSHistory.PeriodBeginning, Staff.StaffID
FROM TSHistory INNER JOIN Staff ON TSHistory.StaffID = Staff.StaffID
WHERE
(((TSHistory.PeriodBeginning)=DateValue([Forms]![EditTimeRecordsInit]![cboPeriodBeginning]))
AND ((TSHistory.StaffID)=[Forms]![EditTimeRecordsInit]![cboStaffID]));

Subform RecordSource
SELECT TimeRecords.PeriodDay, TimeRecords.TSID, TimeRecords.ProjectNumber,
TimeRecords.Hours, Projects.Project, TimeRecords.StatusID
FROM TimeRecords INNER JOIN Projects ON TimeRecords.ProjectNumber =
Projects.ProjectNumber
ORDER BY Left(Projects.ProjectNumber,1), TimeRecords.ProjectNumber,
TimeRecords.PeriodDay;

Subform Property:
LinkMasterFields = LinkChildFields = TSID


  #2  
Old December 14th, 2006, 10:17 PM posted to microsoft.public.access.forms
Klatuu
external usenet poster
 
Posts: 7,074
Default Locked Form

Hopefully you have a copy of the front end on each user's desktop and the
back end on a shared folder.

In Tools, Options, Advanced:
Default Open Mode - Shared

Default Record Locking - No Locks

Open databases using record level locking - Checked.

"Sprinks" wrote:

I’m having frequent difficulty in getting locked out of a form. I’m new to
multiple user applications. I thought we were using Record-level locking, and
so would get locked out only if the same record were being edited at the same
time by another user. With a 15-person office, that seems unlikely.

In addition to this Timesheet application, we have another application
(which we use much more frequently) that uses a couple of the same
tables—Staff and Projects. To avoid either duplicating the effort for these
two tables or combining the two applications into one, I chose to create a
second backend file, Common.mdb, where the shared tables are stored once.
These are then linked into the front-end file. I understand that this means
the ability to enforce referential integrity is thus lost because I can’t
establish any relationships in the backend.

This may be a part of the explanation of why we get locked out of the form
when anyone has the 2nd application opened. I would appreciate any help on
record-locking in general, how to correct the current situation, and whether
it might make sense to combine these two applications into one.

Thank you.
Sprinks

Tables:

Staff
StaffID AutoNumber (PK)
FName Text
LName Text
…

TSHistory (One side of relationship w/TimeRecords)
TSID AutoNumber (PK)
PeriodBeginning Date
StaffID Integer (FK to Staff)


TimeRecords (Many side of relationship w/TSHistory)
TimeRecordID AutoNumber (PK)
TSID Integer (PK to TSHistory)
ProjectNumber Text (FK to Projects)
PeriodDay Integer (1-14)
Hours Integer
StatusID Integer (FK to Status)
InvoiceDate Date

Projects
Project Text (PK)
ProjectName Text
…

Main Form RecordSource:
SELECT Staff.FName & " " & Staff.LName AS StaffName, TSHistory.TSID,
TSHistory.PeriodBeginning, Staff.StaffID
FROM TSHistory INNER JOIN Staff ON TSHistory.StaffID = Staff.StaffID
WHERE
(((TSHistory.PeriodBeginning)=DateValue([Forms]![EditTimeRecordsInit]![cboPeriodBeginning]))
AND ((TSHistory.StaffID)=[Forms]![EditTimeRecordsInit]![cboStaffID]));

Subform RecordSource
SELECT TimeRecords.PeriodDay, TimeRecords.TSID, TimeRecords.ProjectNumber,
TimeRecords.Hours, Projects.Project, TimeRecords.StatusID
FROM TimeRecords INNER JOIN Projects ON TimeRecords.ProjectNumber =
Projects.ProjectNumber
ORDER BY Left(Projects.ProjectNumber,1), TimeRecords.ProjectNumber,
TimeRecords.PeriodDay;

Subform Property:
LinkMasterFields = LinkChildFields = TSID


  #3  
Old December 14th, 2006, 10:50 PM posted to microsoft.public.access.forms
Sprinks
external usenet poster
 
Posts: 531
Default Locked Form

Klatuu,

Yes, the front-end is on each user's local drive. My current settings a

Default Open Mode - Shared
Default Record Locking - Edited Record
Open databases using record level locking - Checked

Can you tell me how the behavior will differ by changing the Default Record
Locking?

Thank you.

Sprinks

"Klatuu" wrote:

Hopefully you have a copy of the front end on each user's desktop and the
back end on a shared folder.

In Tools, Options, Advanced:
Default Open Mode - Shared

Default Record Locking - No Locks

Open databases using record level locking - Checked.

"Sprinks" wrote:

I’m having frequent difficulty in getting locked out of a form. I’m new to
multiple user applications. I thought we were using Record-level locking, and
so would get locked out only if the same record were being edited at the same
time by another user. With a 15-person office, that seems unlikely.

In addition to this Timesheet application, we have another application
(which we use much more frequently) that uses a couple of the same
tables—Staff and Projects. To avoid either duplicating the effort for these
two tables or combining the two applications into one, I chose to create a
second backend file, Common.mdb, where the shared tables are stored once.
These are then linked into the front-end file. I understand that this means
the ability to enforce referential integrity is thus lost because I can’t
establish any relationships in the backend.

This may be a part of the explanation of why we get locked out of the form
when anyone has the 2nd application opened. I would appreciate any help on
record-locking in general, how to correct the current situation, and whether
it might make sense to combine these two applications into one.

Thank you.
Sprinks

Tables:

Staff
StaffID AutoNumber (PK)
FName Text
LName Text
…

TSHistory (One side of relationship w/TimeRecords)
TSID AutoNumber (PK)
PeriodBeginning Date
StaffID Integer (FK to Staff)


TimeRecords (Many side of relationship w/TSHistory)
TimeRecordID AutoNumber (PK)
TSID Integer (PK to TSHistory)
ProjectNumber Text (FK to Projects)
PeriodDay Integer (1-14)
Hours Integer
StatusID Integer (FK to Status)
InvoiceDate Date

Projects
Project Text (PK)
ProjectName Text
…

Main Form RecordSource:
SELECT Staff.FName & " " & Staff.LName AS StaffName, TSHistory.TSID,
TSHistory.PeriodBeginning, Staff.StaffID
FROM TSHistory INNER JOIN Staff ON TSHistory.StaffID = Staff.StaffID
WHERE
(((TSHistory.PeriodBeginning)=DateValue([Forms]![EditTimeRecordsInit]![cboPeriodBeginning]))
AND ((TSHistory.StaffID)=[Forms]![EditTimeRecordsInit]![cboStaffID]));

Subform RecordSource
SELECT TimeRecords.PeriodDay, TimeRecords.TSID, TimeRecords.ProjectNumber,
TimeRecords.Hours, Projects.Project, TimeRecords.StatusID
FROM TimeRecords INNER JOIN Projects ON TimeRecords.ProjectNumber =
Projects.ProjectNumber
ORDER BY Left(Projects.ProjectNumber,1), TimeRecords.ProjectNumber,
TimeRecords.PeriodDay;

Subform Property:
LinkMasterFields = LinkChildFields = TSID


  #4  
Old December 14th, 2006, 10:56 PM posted to microsoft.public.access.forms
Klatuu
external usenet poster
 
Posts: 7,074
Default Locked Form

With Edited records, the record locks when a user begins editing a record.
If you change it to No Locks, the record does not lock until the user
attempts an update.

"Sprinks" wrote:

Klatuu,

Yes, the front-end is on each user's local drive. My current settings a

Default Open Mode - Shared
Default Record Locking - Edited Record
Open databases using record level locking - Checked

Can you tell me how the behavior will differ by changing the Default Record
Locking?

Thank you.

Sprinks

"Klatuu" wrote:

Hopefully you have a copy of the front end on each user's desktop and the
back end on a shared folder.

In Tools, Options, Advanced:
Default Open Mode - Shared

Default Record Locking - No Locks

Open databases using record level locking - Checked.

"Sprinks" wrote:

I’m having frequent difficulty in getting locked out of a form. I’m new to
multiple user applications. I thought we were using Record-level locking, and
so would get locked out only if the same record were being edited at the same
time by another user. With a 15-person office, that seems unlikely.

In addition to this Timesheet application, we have another application
(which we use much more frequently) that uses a couple of the same
tables—Staff and Projects. To avoid either duplicating the effort for these
two tables or combining the two applications into one, I chose to create a
second backend file, Common.mdb, where the shared tables are stored once.
These are then linked into the front-end file. I understand that this means
the ability to enforce referential integrity is thus lost because I can’t
establish any relationships in the backend.

This may be a part of the explanation of why we get locked out of the form
when anyone has the 2nd application opened. I would appreciate any help on
record-locking in general, how to correct the current situation, and whether
it might make sense to combine these two applications into one.

Thank you.
Sprinks

Tables:

Staff
StaffID AutoNumber (PK)
FName Text
LName Text
…

TSHistory (One side of relationship w/TimeRecords)
TSID AutoNumber (PK)
PeriodBeginning Date
StaffID Integer (FK to Staff)


TimeRecords (Many side of relationship w/TSHistory)
TimeRecordID AutoNumber (PK)
TSID Integer (PK to TSHistory)
ProjectNumber Text (FK to Projects)
PeriodDay Integer (1-14)
Hours Integer
StatusID Integer (FK to Status)
InvoiceDate Date

Projects
Project Text (PK)
ProjectName Text
…

Main Form RecordSource:
SELECT Staff.FName & " " & Staff.LName AS StaffName, TSHistory.TSID,
TSHistory.PeriodBeginning, Staff.StaffID
FROM TSHistory INNER JOIN Staff ON TSHistory.StaffID = Staff.StaffID
WHERE
(((TSHistory.PeriodBeginning)=DateValue([Forms]![EditTimeRecordsInit]![cboPeriodBeginning]))
AND ((TSHistory.StaffID)=[Forms]![EditTimeRecordsInit]![cboStaffID]));

Subform RecordSource
SELECT TimeRecords.PeriodDay, TimeRecords.TSID, TimeRecords.ProjectNumber,
TimeRecords.Hours, Projects.Project, TimeRecords.StatusID
FROM TimeRecords INNER JOIN Projects ON TimeRecords.ProjectNumber =
Projects.ProjectNumber
ORDER BY Left(Projects.ProjectNumber,1), TimeRecords.ProjectNumber,
TimeRecords.PeriodDay;

Subform Property:
LinkMasterFields = LinkChildFields = TSID


  #5  
Old December 15th, 2006, 02:55 PM posted to microsoft.public.access.forms
Sprinks
external usenet poster
 
Posts: 531
Default Locked Form

Thanks, Klatuu. And I found out this morning that that was the issue. All
the other users had the default configuration of No Locks, while I'd changed
mine to Edited Record. After changing it this morning, the conflict is gone.

Thanks.
Sprinks

"Klatuu" wrote:

With Edited records, the record locks when a user begins editing a record.
If you change it to No Locks, the record does not lock until the user
attempts an update.

"Sprinks" wrote:

Klatuu,

Yes, the front-end is on each user's local drive. My current settings a

Default Open Mode - Shared
Default Record Locking - Edited Record
Open databases using record level locking - Checked

Can you tell me how the behavior will differ by changing the Default Record
Locking?

Thank you.

Sprinks

"Klatuu" wrote:

Hopefully you have a copy of the front end on each user's desktop and the
back end on a shared folder.

In Tools, Options, Advanced:
Default Open Mode - Shared

Default Record Locking - No Locks

Open databases using record level locking - Checked.

"Sprinks" wrote:

I’m having frequent difficulty in getting locked out of a form. I’m new to
multiple user applications. I thought we were using Record-level locking, and
so would get locked out only if the same record were being edited at the same
time by another user. With a 15-person office, that seems unlikely.

In addition to this Timesheet application, we have another application
(which we use much more frequently) that uses a couple of the same
tables—Staff and Projects. To avoid either duplicating the effort for these
two tables or combining the two applications into one, I chose to create a
second backend file, Common.mdb, where the shared tables are stored once.
These are then linked into the front-end file. I understand that this means
the ability to enforce referential integrity is thus lost because I can’t
establish any relationships in the backend.

This may be a part of the explanation of why we get locked out of the form
when anyone has the 2nd application opened. I would appreciate any help on
record-locking in general, how to correct the current situation, and whether
it might make sense to combine these two applications into one.

Thank you.
Sprinks

Tables:

Staff
StaffID AutoNumber (PK)
FName Text
LName Text
…

TSHistory (One side of relationship w/TimeRecords)
TSID AutoNumber (PK)
PeriodBeginning Date
StaffID Integer (FK to Staff)


TimeRecords (Many side of relationship w/TSHistory)
TimeRecordID AutoNumber (PK)
TSID Integer (PK to TSHistory)
ProjectNumber Text (FK to Projects)
PeriodDay Integer (1-14)
Hours Integer
StatusID Integer (FK to Status)
InvoiceDate Date

Projects
Project Text (PK)
ProjectName Text
…

Main Form RecordSource:
SELECT Staff.FName & " " & Staff.LName AS StaffName, TSHistory.TSID,
TSHistory.PeriodBeginning, Staff.StaffID
FROM TSHistory INNER JOIN Staff ON TSHistory.StaffID = Staff.StaffID
WHERE
(((TSHistory.PeriodBeginning)=DateValue([Forms]![EditTimeRecordsInit]![cboPeriodBeginning]))
AND ((TSHistory.StaffID)=[Forms]![EditTimeRecordsInit]![cboStaffID]));

Subform RecordSource
SELECT TimeRecords.PeriodDay, TimeRecords.TSID, TimeRecords.ProjectNumber,
TimeRecords.Hours, Projects.Project, TimeRecords.StatusID
FROM TimeRecords INNER JOIN Projects ON TimeRecords.ProjectNumber =
Projects.ProjectNumber
ORDER BY Left(Projects.ProjectNumber,1), TimeRecords.ProjectNumber,
TimeRecords.PeriodDay;

Subform Property:
LinkMasterFields = LinkChildFields = TSID


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:48 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.