G
Guest
I have a form that has Me.AllowEdits = False in the On Open event. The form
has two controls on it that are giving me the trouble. fldHeightInches and
fldWeightPounds. These two fields are also used in the query that populates
the form (frmClinicalPresentation) to calculate total body surface area
(BSA). When the from opens, other controls cannot be edited until the edit
button is clicked. These two however, allow data to be entered without the
form being in edit mode. Id get a pop-up error msg that states "Field Cannot
be Updated". the help button on the pop-up states:
"You tried to update a field in a record or table that is currently locked
by another user. Wait for the other user to finish working with the record or
table, and then try the operation again."
If I press OK on the msg the value is then accepted into the field and my
form is now editable even though the Edit button was never clicked. After
there is an entry in these fields, if I come back to the form after closing,
everything works fine.
I've checked everything, all the properties and no locks are set on these
fields.
Is it possible the calculated field is having some effect on this? Here's
the query.
SELECT tblClinicalPresentation.fldCPNo, tblClinicalPresentation.fldVisitNo,
tblClinicalPresentation.fldHeightInches,
tblClinicalPresentation.fldWeightPounds, tblClinicalPresentation.fldRhythm,
tblClinicalPresentation.fldRhythmFrequency,
tblClinicalPresentation.[fldEpisodes>72hrs],
tblClinicalPresentation.fldNoWeeksOfRhythm,
tblClinicalPresentation.fldNoYearsOfRhythm,
tblClinicalPresentation.fldHistoryOfCardioversion,
tblClinicalPresentation.fldPalpitation, tblClinicalPresentation.fldChestPain,
tblClinicalPresentation.fldFatigue, tblClinicalPresentation.fldSOB,
tblClinicalPresentation.fldDizziness,
tblClinicalPresentation.fldLackOfEnergy, (IIf(([fldHeightInches] Is Null) Or
([fldWeightPounds] Is Null),0,Sqr([fldHeightInches]*[fldWeightPounds]/3131)))
AS BSA
FROM tblClinicalPresentation
WHERE
(((tblClinicalPresentation.fldVisitNo)=[Forms]![frmPtDemographicNew]![frmVisitNewEdit].[Form]![VisitNo]));
As always, you're help is greatly appreciated. Thanks, Rob
has two controls on it that are giving me the trouble. fldHeightInches and
fldWeightPounds. These two fields are also used in the query that populates
the form (frmClinicalPresentation) to calculate total body surface area
(BSA). When the from opens, other controls cannot be edited until the edit
button is clicked. These two however, allow data to be entered without the
form being in edit mode. Id get a pop-up error msg that states "Field Cannot
be Updated". the help button on the pop-up states:
"You tried to update a field in a record or table that is currently locked
by another user. Wait for the other user to finish working with the record or
table, and then try the operation again."
If I press OK on the msg the value is then accepted into the field and my
form is now editable even though the Edit button was never clicked. After
there is an entry in these fields, if I come back to the form after closing,
everything works fine.
I've checked everything, all the properties and no locks are set on these
fields.
Is it possible the calculated field is having some effect on this? Here's
the query.
SELECT tblClinicalPresentation.fldCPNo, tblClinicalPresentation.fldVisitNo,
tblClinicalPresentation.fldHeightInches,
tblClinicalPresentation.fldWeightPounds, tblClinicalPresentation.fldRhythm,
tblClinicalPresentation.fldRhythmFrequency,
tblClinicalPresentation.[fldEpisodes>72hrs],
tblClinicalPresentation.fldNoWeeksOfRhythm,
tblClinicalPresentation.fldNoYearsOfRhythm,
tblClinicalPresentation.fldHistoryOfCardioversion,
tblClinicalPresentation.fldPalpitation, tblClinicalPresentation.fldChestPain,
tblClinicalPresentation.fldFatigue, tblClinicalPresentation.fldSOB,
tblClinicalPresentation.fldDizziness,
tblClinicalPresentation.fldLackOfEnergy, (IIf(([fldHeightInches] Is Null) Or
([fldWeightPounds] Is Null),0,Sqr([fldHeightInches]*[fldWeightPounds]/3131)))
AS BSA
FROM tblClinicalPresentation
WHERE
(((tblClinicalPresentation.fldVisitNo)=[Forms]![frmPtDemographicNew]![frmVisitNewEdit].[Form]![VisitNo]));
As always, you're help is greatly appreciated. Thanks, Rob