Results 1 to 8 of 8
  1. #1
    lonely is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Aug 2015
    Posts
    15

    Append query error

    Hi there,



    I am trying to create a append query to add data from previous year to current year, the fields of all three tables are the same, and I can wrong query on those tables separately. The error says: cannot open database ". It may not be a database that your application recognizes, or the file may be corrupt.

    Click image for larger version. 

Name:	erro.jpg 
Views:	12 
Size:	20.9 KB 
ID:	21776

    Anyone has similar error before? Figured out?

    Thanks,

    Luna

  2. #2
    NoellaG's Avatar
    NoellaG is offline VIP
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,175
    Hi Luna,
    are the tables with the previous year in the same database as the tables with data from the current year?

    kr - NG

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    if you are IN access db then the DB is not corrupt. It could be a false error of the query.

    are you appending pure values and not fields from another table?
    is the target table internal or an external linked table>?
    is this a query built by you , or is it SQL?

  4. #4
    lonely is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Aug 2015
    Posts
    15
    Yes, NoellaG,

    They are in the same table.

    When I try to create a new table, similar error happens, but it is OK if I import data from Excel to create a new table.

  5. #5
    lonely is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Aug 2015
    Posts
    15
    Hi Ranman,

    Thank you for looking into it.

    I am appending pure values, not creating any fields.
    The target table is internal, and do not linked with externally.
    I used the query design, and did not write the SQL. I successfully run append query before, no ideal why the thing happens.

  6. #6
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    did u try repair/compacting db?

  7. #7
    NoellaG's Avatar
    NoellaG is offline VIP
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,175
    Hi Luna,

    you could open the query in SQL modus and look if there isn't a point in front of a table name. If you have something like

    select .MyTable.MyField from MyTable

    access would assume the table name is preceeded by the database name. And because there is no name you could get the error Have not found database '' (empty string).


    kind regards
    NG

  8. #8
    lonely is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Aug 2015
    Posts
    15
    Hi NG,

    I have tried the SQL modus, there is no . in front of the table name.

    I fixed it by repairing the DB.

    Thank you.

    Luna

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Append Query From Form Syntax Error
    By burrina in forum Forms
    Replies: 8
    Last Post: 01-02-2013, 10:37 AM
  2. append query error
    By kallm in forum Programming
    Replies: 0
    Last Post: 02-26-2012, 09:35 AM
  3. Append query error trapping
    By tpcervelo in forum Programming
    Replies: 4
    Last Post: 12-22-2011, 10:57 AM
  4. Append Query Error
    By lupis in forum Queries
    Replies: 1
    Last Post: 06-18-2010, 02:10 AM
  5. append query error
    By shashigk in forum Queries
    Replies: 2
    Last Post: 09-22-2009, 07:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums