Extracting from Access
.CommandText = _
"SELECT Categories.CategoryID, Categories.Description " + _
"FROM `" + dbpath + dbname + "`.Categories Categories"
I need to alter this, is that correct?
I'm not quite sure that I know how.
The query string above was generated by the macro recorder,
that's why it looks so complicated.
A simpler version would be:
..CommandText = "SELECT CategoryID, Description FROM Categories";
So what you have to do is to simply replace the query string with your own.
I altered the line below:
.Name = "Query from MS Access Database"
to
.Name = "LTM Coverage EMEA"
No need, just leave it as it is.
But it doesn't work (I get an error on ".Refresh BackgroundQuery:=False")
Can't tell. It works fine for me.
Try commenting this line out and make sure that you copy the whole code.
Good luck -- arunkhemlai
|