Im getting "operation is not supported for this type of object" for rsCustomer.FindFirst "[ID] = '" & ID & "'". any Ideas? its been a while since I have touched access 2008 or so.
Code:
Private Sub selectId_Click()
Dim fDialog As Office.FileDialog
Dim varFile As Variant
Dim dbObj As DAO.Database
Dim rsCustomer As DAO.Recordset
Set dbObj = CurrentDb
Set rsCustomer = dbObj.OpenRecordset("customer")
rsCustomer.FindFirst "[ID] = '" & ID & "'"
Set fDialog = Application.FileDialog(msoFileDialogFilePicker)
With fDialog
.AllowMultiSelect = False
.Title = "Please select Scan of Customers ID"
If .Show = True Then
For Each varFile In .SelectedItems
rsCustomer.Edit
rsCustomer("id_scan").Value = varFile
rsCustomer.Update
Next
Else
'cancel
End If
End With
If id_scan <> Null Then
idDisplay.Picture = id_scan
End If
End Sub