Results 1 to 6 of 6
  1. #1
    Hamm is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2012
    Posts
    27

    Search Query crashing database

    Hi



    I have a weird issue with a search query that is crashing the database. i have multiple unbound text boxes which are used to search different fields and when i type into them the database crashes and forces me to restart. interstingly though, one of the boxes works but i cant see any reason for this to work but not the others. Also, when i ope VB editor and close it again, all the search boxes work.

    has anyone experienced anything like this before?

    thanks
    Hamm

  2. #2
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    This type of thing comes under what I call Strange, Odd and Curious Behavior, and S/O/C/B, especially when coupled with the phrase 'sometimes it does/sometimes it doesn't,' usually translates into corruption, in one form or another.

    The fact that you're seeing this on multiple-controls makes it sound as if it's corruption of the Form, even worse, corruption of the entire app!

    The first thing to attempt, for this type of corruption, is to create a new, blank file and import everything into it. Only takes a minute or two to create and check out, and if it doesn't work you haven't really lost anything! And, amazingly, it does frequently work!

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  3. #3
    Hamm is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2012
    Posts
    27
    Hi Linq

    Can you tell me exactly how i create a new file and import everything. there are a lot of reports, queries and forms in this together with macros. i assume everything can be imported?

    thanks
    Hamm

  4. #4
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    From inside Access:

    1. Click on the 'New' or use <Control> + <N>
    2. Click on Create
    3. Go to top of the Ribbon and click on External Data
    4. Under that click on the Access Icon
    5. Click on Browse
    6. Find your errant Database File
    7. Click OK
    8. Tab by tab, go thru Tables, Queries, Forms, etc, clicking on 'Select All' each time
    9. When done selecting all Objects, click on OK

    You should now be set. If everything now works, delete the old file and rename the new one as the old.

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  5. #5
    Hamm is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2012
    Posts
    27
    Thanks Linq

    Worked a treat. Lets hope I dont get any more SOCBs

  6. #6
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Glad we could help!

    Here's a very good article, by Allen Browne, on preventing corruption. It's well worth a read:

    http://allenbrowne.com/ser-25.html

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

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

Similar Threads

  1. Access Web Database - Search Query Combatibiity
    By AndreasPanayiotou in forum Queries
    Replies: 0
    Last Post: 09-18-2012, 10:37 AM
  2. Access Crashing - Need help please!
    By rave41799 in forum Programming
    Replies: 3
    Last Post: 09-10-2011, 03:28 PM
  3. Crashing when compiled
    By wthoffman in forum Access
    Replies: 1
    Last Post: 04-20-2011, 10:27 AM
  4. access crashing
    By Dirtywindows in forum Access
    Replies: 3
    Last Post: 01-21-2011, 02:19 PM
  5. Access Crashing
    By martinjamesward in forum Access
    Replies: 2
    Last Post: 09-09-2010, 06:29 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