Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Do I have the proper syntax on this SQL statement?

Status
Not open for further replies.

elvenmaiden

Programmer
Apr 25, 2002
31
US
I am tring to connect to an Access qry through VB using SQL, but I am getting an overflow error. Any suggestions??

Set rsStats = conHelpPlus.Execute("SELECT qryStats.Name, qryStats.Subject, qryStats.Questions, qryStats.Solutions, SUM(qryStats.Accepted/qryStats.Solutions) as AcceptanceRate from qryStats WHERE qryStats.UserEmail = '" + mstrUser + "' GROUP BY qryStats.Name, qryStats.Subject, qryStats.Questions, qryStats.Solutions")

Thanks
 
Received answer in the VB 6.0 forum - please disregard
Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top