Page 2 of 2 FirstFirst 12
Results 16 to 23 of 23
  1. #16
    neo651 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2011
    Posts
    110
    No, with the Cstr and Nz it doesn't crash anymore, but there's no calculations being done with those values, it's just pulling the data and displaying it, nothing else.

  2. #17
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,621
    I tested the DLookup by creating record in tbl_Best_Months with a 0 in BestMonth field. I removed the CStr functions. This results in #Type! error in the textbox but no crash. The error is because of + operator. Switching to & character for concatenation fixes that. Sorry, can't replicate the crash.
    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. #18
    neo651 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2011
    Posts
    110
    With the CStr and Nz added to the expression it stopped crashing but if there were any subsequent calculations done they would fail because of the CStr. Very strange.

  4. #19
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,621
    It's also very strange that I don't get the crash.
    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. #20
    neo651 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2011
    Posts
    110
    I have about 30 users who use this database, they all experience the error and I get it on my test machine, too.

  6. #21
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,621
    Maybe a 64-bit issue?
    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. #22
    neo651 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2011
    Posts
    110
    Oooooo. Good call. We're all 64-bit. I'll have to test that. Thanks so much.

  8. #23
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,621
    My 8-yr old HP laptop does not crash with CStr removed from the original DLookup expression. Just the #Type! error displays as result in textbox. Good luck.
    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.

Page 2 of 2 FirstFirst 12
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. Replies: 16
    Last Post: 07-20-2011, 08:01 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