Hi, DBguy.
The following may seem a bit odd and there's probably an easier way to
do it but keep in mind that my skills aren't very high. The underlying
query calculates the [IDAreasqin] and then [IDAreasqinr] simply rounds
the value in [IDAreasqin] to 4 decimal places.
To be honest I can't recall exactly why I set it up like this but it
produces the desired results:
IDAreasqin: IIf(IsNull([IDAreasq]),[IDAreasq],IIf(DLookUp
("sqinConvFactor","tblUOMLength","txtUOMLength='" & [IDAreaUOM] & "'")
Is Null,Null,Round(DLookUp
("sqinConvFactor","tblUOMLength","txtUOMLength='" & [IDAreaUOM] & "'")*
[IDAreasq],4)))
IDAreasqinr: Round([IDAreasqin],4)
Hi,
Can you post the Control Source for the calculated value?
Thanks.
johnlute said:
How is the value calculated?
If it's calculated in the record source query, then I have
no idea why it would not work.
This is precisely where it's calculated which is why I can't
understand why it's not working, either. You're skills are much more
advanced than mine and if you have no idea then I'm in big trouble!
I tinkered with DBguy's suggestions which provided the same results
which is that [IDAreasqinr] won't enable/disable unless I leave the
current record and then navigate back to it. Do I need to add a If
Me.Dirty Then Me.Dirty = False?
I went back to this:
Private Sub IDAreasqinr_AfterUpdate()
Me.IDAreasqinmin.Enabled = IsNull(Me.IDAreasqinr = True)
Me.IDAreasqinmin.Enabled = False = IsNull(Me.IDAreasqinr = False)
End Sub
.- Hide quoted text -
- Show quoted text -
.