An application developed on windows 10 current version of access runs beautifully. When moved to the production environment when executing the following code I get a compile error 'Can't find project or Library' and the error highlights the word Right in the line of code. When checking the reference list it show 'Missing Microsoft Access 16 Object library'. That library is not listed in the list obviously. Is ther way of coding around this or can the missing library be loaded somehow?
Any thoughts will help significantly
Private Sub BtnDisplay_Click()
Dim LResult As String
LResult = Right(ImagePath, 1)
If LResult = "f" Then
GoTo PdfDisplay
ElseIf LResult = "g" Then
GoTo JpgDisplay
Else
MsgBox "You Must Select A Document"
Close
End If
Exit Sub
Thanks