MS Access Pass-through query Error: Cannot execute a select query

By | June 19, 2008 | 2 Comments
Category: MS Access Tags: ,

When I tried to run an UPDATE statement from pass-through query, it throwed error “Cannot execute a select query”. This is due to that fact the property ReturnsRecords is set to True which requires the pass through query to return results. If it does not return recordset, it will throw an error. You can correct this error by

  1. Open pass-through query into design mode. Click on Properties button (Alt+Enter) and set Return Records to No
  2. Using program you can set QueryDef object’s ReturnsRecords property to False.

About Vishal Monpara

Vishal Monpara is a full stack Solution Developer/Architect with 13 years of experience primarily using Microsoft stack. He is currently working in Retail industry and moving 1's and 0's from geographically dispersed hard disks to geographically dispersed user leveraging geographically dispersed team members.

2 thoughts on “MS Access Pass-through query Error: Cannot execute a select query

  1. Sivababu

    Hi Vishal,

    Greetings for the day!

    I need Small help from you.

    Whenever open Ms Access form I am getting below issues .

    Unpublished tables with lookups to published tables are incompatible with the Web.

    Not able to sync the Ms access form.

    Could you please me

Leave a Reply

Your email address will not be published. Required fields are marked *