P
pigsy101
I'm trying to create a calculated field on a form that tracks stock
levels.
i have three subforms - frmOpeningStock, frmOrdered and frmAllocated.
i'm using the following statement which works fine when all fields are
populated and works when neither the Total Ordered or the Total
Allocated fields are populated.
=IIf(IsNull([frmOrdered].[Form]![Total Ordered]) And
IsNull([tblAllocated].[Form]![Total Allocated]),[frmOpeningStock].
[Form]![number],[frmOpeningStock].[Form]![number]+[frmOrdered].[Form]!
[Total Ordered]-[tblAllocated].[Form]![Total Allocated])
How can i get this to work when either the Total Ordered or the Total
Allocated could be null??
Thanks in advance
P
levels.
i have three subforms - frmOpeningStock, frmOrdered and frmAllocated.
i'm using the following statement which works fine when all fields are
populated and works when neither the Total Ordered or the Total
Allocated fields are populated.
=IIf(IsNull([frmOrdered].[Form]![Total Ordered]) And
IsNull([tblAllocated].[Form]![Total Allocated]),[frmOpeningStock].
[Form]![number],[frmOpeningStock].[Form]![number]+[frmOrdered].[Form]!
[Total Ordered]-[tblAllocated].[Form]![Total Allocated])
How can i get this to work when either the Total Ordered or the Total
Allocated could be null??
Thanks in advance
P