J
Jeff
Hi all,
I am using DLookup to populate txtboxes and a combobox (fields datatype
are date/time, currency, text, and number) I got Run-time error '3464': data
type mismatch in criteria expression. Please help.
e.g.1 populate data (text) into a combobox
Me.CmbVendors.Text = DLookup("Vendor", "tblBatchOrders", "BatchNumber= '" &
[Forms]![frmbatchlog]![ListBatch] & "'")
e.g. 2 populate data (date/time) into a textbox
Me.TxtDateSent = DLookup("DateSent", "tblBatchOrders", "BatchNumber= '" &
[Forms]![frmbatchlog]![ListBatch] & "'")
Thanks,
Jeff
I am using DLookup to populate txtboxes and a combobox (fields datatype
are date/time, currency, text, and number) I got Run-time error '3464': data
type mismatch in criteria expression. Please help.
e.g.1 populate data (text) into a combobox
Me.CmbVendors.Text = DLookup("Vendor", "tblBatchOrders", "BatchNumber= '" &
[Forms]![frmbatchlog]![ListBatch] & "'")
e.g. 2 populate data (date/time) into a textbox
Me.TxtDateSent = DLookup("DateSent", "tblBatchOrders", "BatchNumber= '" &
[Forms]![frmbatchlog]![ListBatch] & "'")
Thanks,
Jeff