How to execute a query in ms-access in VBA code?
How about something like this… Dim rs As RecordSet Set rs = Currentdb.OpenRecordSet(“SELECT PictureLocation, ID FROM MyAccessTable;”) Do While Not rs.EOF Debug.Print rs(“PictureLocation”) & ” – ” & rs(“ID”) rs.MoveNext Loop