Page 1 of 3 123 LastLast
Results 1 to 15 of 34
  1. #1
    yrstruly is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2024
    Posts
    122

    Query can not be used as a row source

    I would like to have a drop down buttin yes/no. I tried with SQL, im getting he above error.



  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Provide the query SQL.

    But if you just want Yes or No options, don't need SQL for that. Use value list.
    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
    yrstruly is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2024
    Posts
    122

  4. #4
    yrstruly is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2024
    Posts
    122
    I can see the code in the drop down now, its only suppose to show yes/no
    Code:
    "-1;""Yes"";0;""No"""

  5. #5
    yrstruly is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2024
    Posts
    122

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Property settings:

    Row Source: Yes;No

    Row Source Type: Value List

    Format: Yes/No
    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. #7
    yrstruly is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2024
    Posts
    122

  8. #8
    yrstruly is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2024
    Posts
    122
    I get this output.
    Attached Thumbnails Attached Thumbnails combobox.PNG  

  9. #9
    June7's Avatar
    June7 is offline VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    You aren't using the settings I showed. Review my last 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.

  10. #10
    yrstruly is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2024
    Posts
    122
    I did...See pics
    Attached Thumbnails Attached Thumbnails setttings permit.PNG   data.PNG  

  11. #11
    madpiet is offline Expert
    Windows 10 Office 365
    Join Date
    Feb 2023
    Posts
    566
    Not sure about your last question, but the other one with the Yes/No list you made, you'd set the column widths to 0;0.5 or something - it will hide the numeric column and show only the "Yes"/"No" values.

  12. #12
    yrstruly is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2024
    Posts
    122
    0;0.5, give no output or i cant see it.

  13. #13
    madpiet is offline Expert
    Windows 10 Office 365
    Join Date
    Feb 2023
    Posts
    566
    post your database... or at least the front end.
    The fumigation status one...
    Column Count: 2
    Width: 0;1 (For example)... the first one should be zero.

    then the value in the first column (column(0)) will be written to the table, and the rest will just be displayed. (well if the width isn't 0 for that column)

  14. #14
    yrstruly is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2024
    Posts
    122
    I cant post pictures, this system is reall not uer friendly. How do i share a db without exposing data?

  15. #15
    madpiet is offline Expert
    Windows 10 Office 365
    Join Date
    Feb 2023
    Posts
    566
    These are the important properties of the combobox that you're having fun with:
    Column Count: 2
    Column Widths: 0;1
    List Width: 1
    Width: 1

    (Notice that the total of the column widths is 1, and that matches the List Width property setting)

Page 1 of 3 123 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 4
    Last Post: 04-26-2020, 02:33 AM
  2. Replies: 8
    Last Post: 12-20-2019, 12:50 AM
  3. Replies: 3
    Last Post: 05-02-2019, 02:29 PM
  4. Replies: 19
    Last Post: 06-26-2018, 07:13 AM
  5. Replies: 1
    Last Post: 11-28-2013, 10:03 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