R
Rafi
I have a textbox control (PO) on a form (frmInvoice) which I would like to
populate with the result of a query.
SELECT TblInvoice.[Purchase Order]
FROM TblInvoice
WHERE (TblInvoice.InvoiceID)= (SELECT Max(InvoiceID) FROM TblInvoice
WHERE([TblInvoice].[Company_ID]=[Forms]![FrmInvoice]![Company_ID]));
I would like to associate the result of querry above with the On Enter event
of the control (PO) so that the querry's result will become the control's
default value.
Can somebody help with the VBA syntax?
populate with the result of a query.
SELECT TblInvoice.[Purchase Order]
FROM TblInvoice
WHERE (TblInvoice.InvoiceID)= (SELECT Max(InvoiceID) FROM TblInvoice
WHERE([TblInvoice].[Company_ID]=[Forms]![FrmInvoice]![Company_ID]));
I would like to associate the result of querry above with the On Enter event
of the control (PO) so that the querry's result will become the control's
default value.
Can somebody help with the VBA syntax?