I have searched for this problem and found several postings that tell me to open the VBE and then check "Tools, References" to make sure the right libraries are added, but I still have the same problem with this query. I cannot determine what libary is missing. I am running Access 2003. Any help is greatly appreciated.
Here are the libraries that I have listed:
1. VBA
2. MS Access 11.0 Object Library
3. OLE Automation
4. MS DAO 3.6 Object LIbrary
5. MS Active x Data Object 2.1 Library
I am trying to split the first and last name from one field in someone's table, which is in the format: "GREWE, GREG"
The error message is Undefined Function MID.
thanks
Greg Grewe
West Chester, Ohio
Here are the libraries that I have listed:
1. VBA
2. MS Access 11.0 Object Library
3. OLE Automation
4. MS DAO 3.6 Object LIbrary
5. MS Active x Data Object 2.1 Library
I am trying to split the first and last name from one field in someone's table, which is in the format: "GREWE, GREG"
Code:
SELECT MID([INDV-NAME],1, INSTR(1, [INDIV-NAME], ",")) AS lastname FROM TABLE ORDER BY FIELD NAME
The error message is Undefined Function MID.
thanks
Greg Grewe
West Chester, Ohio