Results 1 to 8 of 8
  1. #1
    jbhome is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2012
    Posts
    4

    access errors and crashes on new system

    Hello everyone,

    My tale of woe follows
    My office computer, along with the phone system, printers etc took a lightening strike last week.
    The hard drive survived but not the computer.
    I was able to get the office access db onto a new system but now I get errors when running it.
    I'm just learning access so please forgive any terminology errors I may make.
    When opened, the main menu appears. Whoopee!
    Not so fast. When I select an item, I get "the expression On Click you entered as the event property setting produced the following Automation error.
    The expression may not result in the name of a macro, the name of a user-defined function, or [Event Procedure]

    There may have been an error evaluating the function, event, or macro"

    Pressing the button a second time does not produce the error and opens the correct form.
    This form works properly.
    The second problem is with a second report form that opens properly.
    This form expects dates and accepts them but when I try to print the report, access closes with no error message.

    Any thought or suggestions gratefully accepted.
    both old and new systems running Xp
    access ran db properly before the strike.

    regards,
    Jim Brooks

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    Is this a split database?

    Did you run Compact & Repair?

    If that fails, import everything to a new db file.

    Want to provide the db for analysis? Follow instructions at bottom of my post.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    jbhome is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2012
    Posts
    4
    Hello ?

    As I said, I'm new so not sure what a split db is. It does have multiple records/with subfields.
    I imported to a blank db but don't know (yeesh I feel like such a newb) how to make the db run.
    when I open new db, I'm left in editor rather than main menu of normal running app.
    Since the db contains only conf data, removing it would seem problematic. Is there a wah to delete record but leave db structure intact. Wot a newb eh.

    Jim

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    I presume you did not build this db?

    A split database is when the data tables are in one file (backend) and another file is the user interface (frontend) that connects to the tables. This allows the data to be in a central location on a network and each user runs their own copy of the frontend. Apparently, this is not the case for you.

    In the old db, check the db properties. Perhaps it was set to open a form by default when the file opened.
    In Access 2003 click: Tools > Options > Current Database > set options desired

    Can certainly delete records but why is this necessary?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    jbhome is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2012
    Posts
    4
    Correct, I inherited the db.

    I made progress yesterday. Needed to import all part of old db. Now I was able to specify the startup form.
    That opens vba ui and reports database in undefined data type.
    Is there something I'm missing ie runtime libraries, to make this run?

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    Possibly, again check the old db. Open the VBA editor and under Tools > References, see what libraries are selected.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    jbhome is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2012
    Posts
    4
    The preferences item in tools is greyed out. There are no modules in db, only forms and queries.

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    There is no VBA code in the original db? Not even behind forms? You opened the VBA editor?

    Again, do you want to provide db for analysis? Tables can be empty.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Access crashes when editing VBA
    By Tingholm in forum Programming
    Replies: 5
    Last Post: 01-16-2013, 01:29 AM
  2. VBA crashes Access
    By TheShabz in forum Access
    Replies: 10
    Last Post: 03-28-2012, 03:11 PM
  3. SQL crashes access
    By max in forum Programming
    Replies: 10
    Last Post: 01-11-2012, 03:44 AM
  4. VBA Crashes Access
    By ChuckColeman1812 in forum Programming
    Replies: 5
    Last Post: 12-12-2011, 03:33 AM
  5. Access Crashes When Wizards are Used
    By DCSwearingen in forum Access
    Replies: 6
    Last Post: 04-12-2009, 07:35 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