I am trying to display a calculation in a form - here is the On Current I have so far:
Private Sub Form_Current()
[txtDocInv] = DLookup("[InvoicedToDate]", "[qryInvoicedTD]", _
" & [Docket #])
End Sub
[InvoicedToDate] is a calculation in a separate query (not connected to the form)
[Docket #] is a form field - when a record is displayed I want it to display the corresponding calculation from [InvoicedToDate].
Can you tell me what I am missing? Thank you.
Private Sub Form_Current()
[txtDocInv] = DLookup("[InvoicedToDate]", "[qryInvoicedTD]", _
" & [Docket #])
End Sub
[InvoicedToDate] is a calculation in a separate query (not connected to the form)
[Docket #] is a form field - when a record is displayed I want it to display the corresponding calculation from [InvoicedToDate].
Can you tell me what I am missing? Thank you.