Given how you're trying to use it, it should be declared As Database.
However, you'll only get that as an option after you add the DAO reference,
as outlined in my other response.
If you do continue to have that object, then make the following change:
Set Bdd = CurrentDb
Set RST = CurrentDb.OpenRecordset(strSQL)
should be
Set Bdd = CurrentDb
Set RST = Bdd.OpenRecordset(strSQL)
With your help, Douglas, i add the MS DAO 3.6 object library, and then I've
found a solution :
the SQL request have some difficulty to understand the content of the fiels
SAP is a string - in fact actually an integer but i want to consider it as a
string- so i inckude the function CStr in order to convince SQL ans VBA :
BTW, you may want to post your questions to a more appropriate group. This
one is for Macros, and your questions have nothing to do with Macros.
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.