Joining Two Tables with Different Data types MS ACCESS - 'type mismatch in expression' error

后端 未结 2 504
迷失自我
迷失自我 2021-01-25 13:46

I\'m trying to run a query on access using two live CSVs which has a common field with different data types(numbers and short text). I\'ve discovered that you can join different

2条回答
  •  野的像风
    2021-01-25 14:44

    Try the other way round:

    ON Sixthform_Reg_Year_Groups.Person_id = Val(Students.employeeID)
    

    and/or prevent Null errors:

    ON CStr(Nz(Sixthform_Reg_Year_Groups.Person_id, 0)) = Nz(Students.employeeID)
    

提交回复
热议问题