Results 1 to 7 of 7
  1. #1
    sk88 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    183

    Type mismatch (Error 13) in combo box

    I have this very strange error. I have a combo box field for 'Year' (1994 all the way to 2014). This combo box source is from a table called tblYear. Now, since this is a new year, I added 2015 and 2016 to the table.
    I see 2015 and 2016 when I go to the form combo list. However, when I choose 2015 or 2016, I get the ERROR 13 message. I do not get the message when I choose 2014 or any year before that.



    Please help.

    Thanks,
    Shirley

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,648
    Is this a BOUND combobox for data entry?

    Have you run Compact & Repair?

    If you want to provide 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
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Now, since this is a new year, I added 2015 and 2016 to the table.
    Do you mean you added 2015 and 2016 as FIELDS to a table or as data to one specific field?

  4. #4
    sk88 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    183
    Thanks June7.. Yes it is a bound combobox for data entry.
    Please see attached imageClick image for larger version. 

Name:	tblYear.png 
Views:	7 
Size:	8.8 KB 
ID:	19313

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,648
    I guess next step is to provide the db.

    Year is a reserved word. Should not use reserved words as names. http://allenbrowne.com/AppIssueBadWord.html
    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.

  6. #6
    sk88 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    183
    Quote Originally Posted by ssanfu View Post
    Do you mean you added 2015 and 2016 as FIELDS to a table or as data to one specific field?
    Thanks ssanfu!

    I added 2015, 2016, and 2017 to the table and the combo box in the form is based on the table.

  7. #7
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Looks OK. I agree with June...... Need to have the database to analyze.

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

Similar Threads

  1. error 13 type mismatch
    By jkd in forum Programming
    Replies: 2
    Last Post: 04-19-2014, 09:46 PM
  2. Replies: 7
    Last Post: 07-24-2013, 02:01 PM
  3. type mismatch error 13
    By Compufreak in forum Access
    Replies: 3
    Last Post: 08-10-2012, 03:48 AM
  4. Replies: 1
    Last Post: 05-11-2012, 10:59 AM
  5. Error#13 Type Mismatch
    By Nistin27 in forum Access
    Replies: 8
    Last Post: 08-17-2011, 04:15 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