vba - " #Name? " error in access using DLookup -

what trying have value("element" primary key) elements table inserted time textbox based on result previous combox.
is write snytax achieve ??
=dlookup("[time]","[elements]","[element]=" & [forms]![1 cut wire , cable only]![element])
i suspect there mismatch between name of combo box control , name use in dlookup. try changing combo box control's name cbxelement , using
=dlookup("[time]","[elements]","[element]=""" & [cbxelement] & """") for control source of text box. note idea use prefix "cbx" combo boxes, "txt" text boxes, etc., because
it makes them easier find in intellisense list, and
it avoids potential conflicts when name of control identical name of field in underlying record source.
Comments
Post a Comment