Results 1 to 5 of 5
  1. #1
    Macca is offline Novice
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Aug 2010
    Posts
    2

    A-Z On the side of a form?

    Hi,

    Basically I have quite a big database - I would like a way to get to the beginning of a letter rather than having to click next or search for it.

    So if I have A to Z down the side of the form I click on the T, for example, and it takes me to the first record beginning with T.

    Is this possible? If so how?

    Many thanks,


    M.

  2. #2
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    the embedded capability of the listbox or combobox is that one can begin typing and it jumps to whatever letter(s) are in that list as you go......so most people put one of these in the header of the form.....

    the approach you suggest is possible; you would have to set up an underlying query that calls that letter from the form. It is quite a bit more complicated.

  3. #3
    Join Date
    May 2010
    Posts
    339
    I have seen a sample contacts DB where the person used Tab Controls very tightly compressed A-Z to form a sort of Rolodex. It seemed to be very fast at retrieving the information.

  4. #4
    pkstormy's Avatar
    pkstormy is offline Access/SQL Server Expert
    Windows XP Access 2003
    Join Date
    Mar 2010
    Location
    Madison
    Posts
    682
    Here's an example with A-Z at the top of the form which you can easily re-position to the side or bottom. It uses a simple like statement in the rowsource of the listbox for criteria to query against a text field (that you can add characters to) which is populated when an A-Z button is pushed. I use it in all my apps - works pretty nice and my users like it a lot. The "All" button simply nulls the text field and requeries the listbox. Once the user clicks on the appropriate record, it will open my customer form based on the record selected (ie. docmd.openform "MyCustomers",,,"[IDField] = " & CID & "") where CID is the listbox value.

    I also made it so the letter pushed becomes bolded and is in red. There's no complicated logic to the form coding.

  5. #5
    Macca is offline Novice
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Aug 2010
    Posts
    2
    Thank you all for your help. I will try the files when I get home tonight and let you know how I get on!

    Once again, many thanks.



    M.

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

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