My VBA code (attached) is written in Word2003/VBA and accesses an MSAccess2003 MDB query called "qryDateLastPlayed".
This is a jukebox player that tries to play "stale" tracks that have not been played in a long time, with an option to select from those, only tracks whose Fullname contains a supplied string (in my example I am looking for "organ" music)
From the Debug Window
Code: Select all
?strselect
SELECT * from qryDateLastPlayedALL ORDER BY DateLastPlayed WHERE FullName LIKE 'organ'
FWIW the second SELECT statement (without a LIKE operator) executes perfectly.
Thanks for any nudges in the right direction.
Chris