when i stop the code it shows me that the [subfrm_Invoice].[Form]![InvoiceCreatedDate] = Null. When i remove the if then statement i can put the current date value in that field. sure its a different way i have to specify the field. Thanks
Code:Private Sub OpenDepositInvoice_Click()If [subfrm_Invoice].[Form]![InvoiceCreatedDate] = Null Then [subfrm_Invoice].[Form]![InvoiceCreatedDate] = Date End If End Sub