Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,550
    I believe my IW code shows it works as it should?, so upload the DB with just what we need to reproduce the error.


    If you need to obfuscate the date use this
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  2. #17
    clukem is offline Novice
    Windows 11 Access 2016
    Join Date
    Sep 2024
    Posts
    16
    Quote Originally Posted by June7 View Post
    You have a combobox for AuthorName. Consider using combobox NotInList event to add new author during book data entry.

    Really, name parts should be in separate fields - FirstName, MiddleName, LastName. : I have no wish to delve deeper into the authors other than to find who wrote the book.

    How do you handle publications with multiple authors? They will all appear under authors name (see below). Randal L Schwartz has an entry for himself and another when he wrote with Tom Phoenix. Usually I just put et al for more than 2 authors as shown with the 3rd entry.
    ID Name
    AU0071 Randal L Schwartz and Tom Phoenix
    AU0072 Randall L Schwartz
    AU0073 Larry Wall et al




    What is exact error message? Runtime 13

    Are you missing any library references? Not sure

    Why bother saving "AU" into field?
    I'm migrating from an old Java/MySQL environment and these were what I used there. I like using the AU to identify an Author ID from any other. A personal preference

  3. #18
    June7's Avatar
    June7 is offline VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    That is not the exact error message. There must be more info provided with the error popup. However, it is most likely "type mismatch". I don't see any reason for this error with your original code.

    There are other alpha prefixes than just "AU" stored in this field?

    As others have indicated, best to provide db for analysis.
    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.

  4. #19
    clukem is offline Novice
    Windows 11 Access 2016
    Join Date
    Sep 2024
    Posts
    16
    I've come back to the database this morning and everything seems to be running fine now (see debug.print log below). I did run the compact and repair last night in preparation for sending the database. Maybe that sorted the problem? Not sure why it would only affect the format command. Unless there was something below the surface affecting the data.

    The Max Value from the Database : 0703
    The Pre-incremented Value is : 0703
    The pre-formatted value is : 704
    The Formatted Value is : 0704

    Thanks for all your help

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 4
    Last Post: 11-23-2016, 03:06 PM
  2. Replies: 5
    Last Post: 04-27-2015, 02:40 PM
  3. Replies: 5
    Last Post: 12-01-2014, 11:31 AM
  4. Replies: 0
    Last Post: 08-10-2011, 11:59 AM
  5. Replies: 4
    Last Post: 08-05-2010, 01:26 PM

Tags for this Thread

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