I am having problem with DLookup Function
DLookup looks on form, and finds the combobox = cboFullName and then compares it to the column clientID in tblCLIENTS table. if they match, email is put in text box on form named clientEmail and the control source for that field is linked to a table tblCALLS and clientEmail column.
Not sure if DLookup is right for this.. anyways,
here is the Code
Expand|Select|Wrap|Line Numbers
- Me.clientEmail = DLookup("[email]", "tblCLIENTS", " clientID = cboFullName")
VBA wont let me navigate to prev and complains " engine cannot find a record in the table 'tblCLIENTS' with the key matching field(s) 'clientFK'
thank you! you guys have helped me out immensely!