Results 1 to 6 of 6
  1. #1
    LaughingBull is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Jul 2015
    Location
    Toledo Ohio
    Posts
    143

    code error I don't understand why

    Creating a appointment scheduling form and the code error says this must be assigned a "value List" which it already has been.


    I have attached the DB for someone to look this over and see what is wrong.
    Thank youdates.zip

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2013
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,537
    Can you tell us exactly what we have to do to replicate your error
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,411
    be helpful if you can guide us to where you get the error - what line of code? which control? at what point - form opening? clicking or tabbing into a control? clicking the dropdown?

    only thing I can see at the moment that might be relevant is your code in cboTime_Enter

    ....
    cboTime.RowSourceType = "Value List"
    cboTime.RowSourceType = ""
    ...
    ...

  4. #4
    LaughingBull is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Jul 2015
    Location
    Toledo Ohio
    Posts
    143
    select a date with the date picker and when you click on the time combo the error appears

  5. #5
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,974
    I haven't looked at the code carefully but its giving an error because you haven't set a list of allowed times for the time field
    You are specifying its a value list but haven't supplied those values...

  6. #6
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,411
    suggest remove this line

    cboTime.RowSourceType = ""

    Also recommend you put Option Explicit at the top of each module and select Debug>Compile, you have other errors in your code

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

Similar Threads

  1. Replies: 7
    Last Post: 11-27-2013, 03:14 PM
  2. Replies: 5
    Last Post: 07-10-2013, 05:07 AM
  3. Help me understand queries in my code
    By Datech in forum Queries
    Replies: 0
    Last Post: 06-15-2012, 08:32 PM
  4. Need to understand code
    By accessnewb in forum Programming
    Replies: 2
    Last Post: 08-03-2011, 12:03 PM
  5. Replies: 2
    Last Post: 07-11-2011, 05:34 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