Hi Guy, hope everyone is all good 
I ma trying to add data from excel to access table, Ascall codes from excel sheet
strCode is debugging runtime error 13 type mismatch ?
tried CInt() to make sure chr codes are 1 to 255
Code:
Dim strPath As String, strFile As String, strTableName As String, strSheetName As String, strCode As String, strChar As String, strDesc As StringDim xlAP As Object, xlWB As Object, xlSHT As EXCEL.Worksheet
Dim intLR As Integer, intCode As Integer
Dim rs As DAO.Recordset, db As DAO.Database
strPath = "C:\Users\davem\Desktop\Excel\"
strFile = "ASCII-Codes.xlsx"
Set xlAP = CreateObject("Excel.Application")
Set xlWB = xlAP.Workbooks.Open(strPath & strFile)
Set xlSHT = xlWB.Worksheets(1)
xlAP.Visible = False
intLR = xlSHT.Cells.Find("*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).row
intCode = xlSHT.Range("A2:A" & intLR)
strChar = xlSHT.Range("B2:B" & intLR)
strDesc = xlSHT.Range("C2:C" & intLR)
Debug.Print intCode
Stop
Set db = CurrentDb()
Set rs = db.OpenRecordset("Select * From tblAscllCodes")
With rs
.AddNew
.Fields("Code") = intCode ' Set as Number long integer
.Fields("Character") = strChar ' set as text (Short Text)
.Fields("Description") = strDesc ' set as text (Long Text)
.Update
rs.Close
db.Close
End With
Set rs = Nothing
Set db = Nothing
xlAP.Quit
Set xlAP = Nothing
Set xlWB = Nothing