I have a function
Public Function SplitPart(LSTRSP_EML_EMAIL) Dim LSTRSP_EML_EMAIL As String ‘Dim LSTRSP_EML_DOMAIN As String Split([LSTRSP_EML_EMAIL], “@”, 2) = [LSTRSP_EML_EMAIL] SplitPart_Exit: Exit Function SplitPart_Err: MsgBox Error$ Resume SplitPart_Exit End Function
Which I have called in my query: LSTRSP_EML_DOMAIN: SplitPart().
I am getting an “undefined function “SplitPart’ in Expression. I have verified my references in VBA–see attached file. So far I have only created and worked on this database using Access 2010 and have not attempted to open it in another version. OS Win 7 Professional. Not sure whether the problem is actually with my code or my references.
Your help, as always, is greatly appreciated.