Results 1 to 12 of 12
  1. #1
    ksammie01 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2013
    Posts
    13

    Exclamation Reading VBA code

    Hi, i had a database, which i split into BACK END(BE) and FRONT END(FE).
    BE opens just fine, but, FE, stopped working, non of the forms or reports works when the database opens.
    However, before it opens, i get this error message

    "The database
    cannot be opened because the VBA project contained in it cannot be read. The database can be opened only if the VBA project is first deleted. Deleting the VBA project removes all code from modules, forms and reports. You should back up your database before attempting to open the database and delete the VBA project."


    i have read content but non of them seems to make sense.
    I am using access 2007
    any help, will be highly appreciated
    Thanks

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Hopefully you have a copy of the db *before* you split it. I would *import* the FE into a fresh new db and see if the problem follows. Is it accdb or mdb?

  3. #3
    ksammie01 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2013
    Posts
    13
    its accdb, and i don't have a copy before i split the database, but i can check to confirm.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Here's pictures of *importing* the db into a fresh new db: http://www.btabdevelopment.com/ts/impnew

  5. #5
    ksammie01 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2013
    Posts
    13
    So, i have tried to do the import, of the FE, into a new DB, like in the tutorials, but i get an error message, Click image for larger version. 

Name:	Capture.JPG 
Views:	8 
Size:	38.2 KB 
ID:	10677, and then it suggest that i repair the database, via manage, then compact and repair, but it still says the file am trying to repair is corrupt, and then complains about the VBA macros

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Make a backup. Do you get the same error when you try and open while holding down a <SHIFT> key?

  7. #7
    ksammie01 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2013
    Posts
    13
    yes,,it does the same thing, and then goes ahead to say that," the visual basic for applications project in the database is corrupt

  8. #8
    ksammie01 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2013
    Posts
    13
    then one more question, when u split a database with BLOBS(in this case images), are the images stored in the BE or the FE?
    THANK YOU FOR THE HELP!!

  9. #9
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Did you let the *import* try and recover the file?

  10. #10
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I think the BE but I've not tried it so don't really know.

  11. #11
    ksammie01 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2013
    Posts
    13
    The import, doesn't recover the file...
    At this rate, do you think its advisable to just re-design the forms and reports queries and all that stuff in the FE??

  12. #12
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Quote Originally Posted by ksammie01 View Post
    The import, doesn't recover the file...
    At this rate, do you think its advisable to just re-design the forms and reports queries and all that stuff in the FE??
    This looks like a good plan. Sorry.

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

Similar Threads

  1. Reading row length
    By dnlhmpt in forum Import/Export Data
    Replies: 2
    Last Post: 01-31-2012, 07:47 AM
  2. Recommended Reading
    By Paul H in forum Access
    Replies: 1
    Last Post: 10-06-2011, 09:14 AM
  3. Reading values of a column
    By LAazsx in forum Programming
    Replies: 0
    Last Post: 11-25-2010, 06:05 PM
  4. Reading SQLite db files
    By Tim Heaton in forum Import/Export Data
    Replies: 2
    Last Post: 10-01-2010, 11:08 PM
  5. Reading outlook tasks from Access
    By Bill_dom in forum Import/Export Data
    Replies: 0
    Last Post: 08-07-2008, 06:02 PM

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