Insufficient base table information for updating or refreshing.



If anyone is still getting this using ADO trying to edit a FoxPro (and
possibly other) providers, using an SQL statement as a recordsource,
the answer that worked for me (which I stumbled across after 6 hours of
searching on the net, trying different CursorTypes, verifying I had a
primary key in the table, etc, etc.) is to remove the semicolon (;)
from the end of your SQL statement. Unbelievable!

i.e.
rs.Open "SELECT * FROM sometable WHERE (somefield='something');"

should be

rs.Open "SELECT * FROM sometable WHERE (somefield='something')"
[minus the semicolon]

This allowed me to apply the .update method after editing fields in the
record. Prior to that (with the semicolon) I would consistently get
the error "Insufficient base table information for updating or
refreshing."


Removing the semicolon allowed the BASETABLENAME and other properties
to be properly populated, instead of being Null.

Hope this helps someone out there!

.



Relevant Pages

  • Insufficient base table information for updating or refreshing.
    ... possibly other) providers, using an SQL statement as a recordsource, ... primary key in the table, etc, etc.) is to remove the semicolon ...
    (microsoft.public.vb.database.ado)
  • Re: Are Jet 4.0 Stored queries faster than sql w/ criteria specified as the record source of a form?
    ... The Views and Procedures of the ADOX catalog are nothing more than the queries you see on the Queries tab of the Database window, i.e. the QueryDefs of DAO. ... If you dynamically assign a SQL statement to the form's RecordSource, Access has a little more work to do in determining a query plan. ...
    (microsoft.public.access.queries)
  • Re: Allen Brownes Filter - Modification troubles
    ... Access opens the query builder, so you can build the SQL statement. ... (If the RecordSource was a saved query it opens that. ... Behind the scenes, it saves this as a hidden query anyway, but it does work as a SQL statement. ... 'Build the filter string as shown in the example database. ...
    (microsoft.public.access.queries)
  • Re: refresh fields not available
    ... Reselect the recordsource for the form; also, ... According to the documentation there should be a refresh ... > need to edit the SQL statement so it includes the new fields. ...
    (microsoft.public.access.forms)
  • Re: Help using form filters
    ... entire SQL statement, and pass it to a newly-opened form in the OpenArgs ... then set it as the Form's RecordSource in the Open Event of the ... I am trying to use vb code to set the filter on a form so that only ...
    (comp.databases.ms-access)