R
Robert5833
Good day all;
I’m trying to calculate and display dates as calculated controls in a series
of Text Boxes on a form, but having problems with zero length or Null values.
I am using a time stamp date from Text Box (1), using a numeric value from
Text Box (2) to calculate an “extended†date (as date) displayed in Text Box
(3).
This series works fine, except for the extended date in Text Box (3), which
displays #Error where there is no numeric value in Text Box (2) (because it
is not a criterion for every record).
I can resolve the displayed #Error by entering “0†as a value (rather than
Null or empty) in Text Box (2) for those records which do not have criterion
of “equal to or greater than 1,†but that results in negative values for
other calculated controls on the form.
Is there an expression/syntax to allow either a Null value, empty, or zero
length string in the underlying table, so that I don’t get Null propagation
errors, and so those fields which do not have a multiplier greater than “0â€
do not display any result?
Calculated Control (Text Box) with #Error:
Control Source;
=DateAdd("m",(+[ComboBoxWithNumMultiplier]),[TextBoxWithDateStampRecord])
(Note: ComboBoxWithNumMultiplier above is Format “None†with Row Source on a
table field; Data Type Number)
I can’t seem to find the right syntax to incorporate the Nz, or IIf functions.
Any suggestions would be greatly appreciated.
Thank you,
Robert5833
I’m trying to calculate and display dates as calculated controls in a series
of Text Boxes on a form, but having problems with zero length or Null values.
I am using a time stamp date from Text Box (1), using a numeric value from
Text Box (2) to calculate an “extended†date (as date) displayed in Text Box
(3).
This series works fine, except for the extended date in Text Box (3), which
displays #Error where there is no numeric value in Text Box (2) (because it
is not a criterion for every record).
I can resolve the displayed #Error by entering “0†as a value (rather than
Null or empty) in Text Box (2) for those records which do not have criterion
of “equal to or greater than 1,†but that results in negative values for
other calculated controls on the form.
Is there an expression/syntax to allow either a Null value, empty, or zero
length string in the underlying table, so that I don’t get Null propagation
errors, and so those fields which do not have a multiplier greater than “0â€
do not display any result?
Calculated Control (Text Box) with #Error:
Control Source;
=DateAdd("m",(+[ComboBoxWithNumMultiplier]),[TextBoxWithDateStampRecord])
(Note: ComboBoxWithNumMultiplier above is Format “None†with Row Source on a
table field; Data Type Number)
I can’t seem to find the right syntax to incorporate the Nz, or IIf functions.
Any suggestions would be greatly appreciated.
Thank you,
Robert5833