Results 1 to 15 of 15
  1. #1
    Join Date
    Sep 2022
    Posts
    17

    List box does not show street address?

    Hi, I created a query to show first name, last name and street address. Query works and shows all the info. When I create a list box on a new form using the results from the query, only first name and last name appear not the address. What am I missing?


    any help is greatly appreciated!
    Frank

  2. #2
    moke123's Avatar
    moke123 is offline Me.Dirty=True
    Windows 11 Office 365
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,654
    Do you have the column counts and widths set correctly?
    If this helped, please click the star * at the bottom left and add to my reputation- Thanks

  3. #3
    Join Date
    Sep 2022
    Posts
    17
    Thanks good suggestion, I did increase the col width and checked number of col but still address doesn’t show, in the process I noticed the col title for ‘address, is not there neither.

  4. #4
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,943
    Show a picture of your properties for column count etc. You need to attach any pics, using the Advanced button, then Manage attachments, not copy and paste into the post.
    Show the sql for the listbox source.
    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

  5. #5
    Join Date
    Sep 2022
    Posts
    17
    WelshGasMan,
    Thanks for taking an out at this:
    Attached Thumbnails Attached Thumbnails Properties Sheet Box.jpg   Query1.png  
    Last edited by pbaldy; 10-08-2022 at 05:00 PM.

  6. #6
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    in the process I noticed the col title for ‘address, is not there neither.
    according to your first post, your query has 3 columns ( first name, last name and street address) so your column count value should be 3. Implication is you have set it to 2.

    and when you checked column widths - did you also check the width of the listbox is large enough for all 3 columns to appear.

    Edit - see you have now done that - please also show a screenshot of the form to display the values and also one of the property data tab - to confirm the rowsource is 'searchquery'

  7. #7
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,803
    Is that names, addresses and social security numbers for real people?? If it is, better get an admin to remove that pic ASAP.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  8. #8
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,943
    Quote Originally Posted by CJ_London View Post
    according to your first post, your query has 3 columns ( first name, last name and street address) so your column count value should be 3. Implication is you have set it to 2.

    and when you checked column widths - did you also check the width of the listbox is large enough for all 3 columns to appear
    When it actually has 4 , but they do appear to be accounted for. Plus the width should be enough to show the 4th column, well the first few inches at least?
    Any particular reason why the properties pic was on it's side and not in the normal position?
    Can we have a pic of the listbox?
    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

  9. #9
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    Any particular reason why the properties pic was on it's side and not in the normal position?
    looks like a photo to me

  10. #10
    moke123's Avatar
    moke123 is offline Me.Dirty=True
    Windows 11 Office 365
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,654
    The photo with names should be removed ASAP.

    Names and addresses are legit but SS#'s are not. (I have some resources)

    OP may have to change the table name to tblFormerClients.
    If this helped, please click the star * at the bottom left and add to my reputation- Thanks

  11. #11
    Join Date
    Sep 2022
    Posts
    17
    there are four columns, the first column is not visible, 2nd col is First Name, 3 col is Last Name and the 4th col is Address.

  12. #12
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,943
    Upload a sample DB and we can see what any others get then.?
    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

  13. #13
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,943
    Quote Originally Posted by moke123 View Post
    The photo with names should be removed ASAP.

    Names and addresses are legit but SS#'s are not. (I have some resources)

    OP may have to change the table name to tblFormerClients.
    Even as a UK citizen, I thought the SSNs did not look kosher.
    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

  14. #14
    moke123's Avatar
    moke123 is offline Me.Dirty=True
    Windows 11 Office 365
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,654
    Quote Originally Posted by Welshgasman View Post
    Upload a sample DB and we can see what any others get then.?
    before you do, try using the randomizer app found here . . https://www.access-programmers.co.uk.../#post-1640309

    Use a copy of your database!
    If this helped, please click the star * at the bottom left and add to my reputation- Thanks

  15. #15
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I removed the picture with actual names and addresses. I'd follow Moke's advice if you post a sample db.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. street and subdivision table
    By dsmithe in forum Database Design
    Replies: 7
    Last Post: 09-13-2018, 11:58 PM
  2. Create Address List
    By Paul H in forum Programming
    Replies: 6
    Last Post: 07-05-2016, 03:26 PM
  3. Replies: 4
    Last Post: 09-01-2015, 05:33 AM
  4. Street Address with alphanumeric
    By ampstar in forum Access
    Replies: 4
    Last Post: 08-07-2014, 11:28 AM
  5. Separating Street Number from Street
    By NGallone in forum Queries
    Replies: 0
    Last Post: 10-29-2008, 08:51 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