thanks for all above i have done all till
now i need to validate the value as
if the Main Form value = Purchase than
Sub form Qty should be more than 0, otherwise it will be less than the txtTotalQuantityinStock (which is a calculated query)
have created as below, but getting error, please help to rectify.
Thanks in Advance
IIf([TransactionType]="Purchase",[Forms]![tblInventoryTransactionSubForm]![Qty]>=0,[Forms]![tblInventoryTransactionSubForm]![Qty]<=[txtTotalQuantityinStock])
please suggest where i am going wrong.