access my field

  • Thread starter Thread starter iccsi
  • Start date Start date
I

iccsi

I have a query liek following:

SELECT MyTable.ID, Avg(MyTable1.[AHT]) AS Result, MyTable1.Login_ID
FROM MyTbale1
Where MyTable.ID = MyTable1.Login_ID
GROUP BY MyTable.ID, MyTbale1.Login_ID;

I am unable to access field using VBA for the field Result.

It gives me ID for fields(0) and give me Login_ID for fields(1) and
does not recognize fields("Result").

Are there any way to access group query fields?


Your help is great appreciated,
 
That's invalid SQL, so I suspect you typed it into your question.

Copy-and-paste the actual code you're using, please.
 

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.

Ask a Question

Back
Top