Thread: Run-query error
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
JohnDing[_2_] JohnDing[_2_] is offline
external usenet poster
 
Posts: 5
Default Run-query error

Hi,

I encountered an error while attempted to run a query in
a Excel-VBA subroutine to get data in a MDB database.
error reported as following:

Run time error'-2147217887'
You tried to execute a query that does not include the
specified expression 'Period' as part of an aggregate
function.

But I do have the field 'period', would somebody can help?