Page 2 of 2 FirstFirst 12
Results 16 to 25 of 25
  1. #16
    usmcgrunt's Avatar
    usmcgrunt is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Aug 2010
    Location
    Just outside the gates of freedom
    Posts
    71
    Quote Originally Posted by RuralGuy View Post
    Changing the Lookup to a TextBox does *not* change the value in the field. Back it up first so you will feel confident. http://www.btabdevelopment.com/ts/removelookups
    Wow, it is amazing the links you have to all of these common NOVICE programming issues.

  2. #17
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Uhhh...that's what I was at one time.

  3. #18
    usmcgrunt's Avatar
    usmcgrunt is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Aug 2010
    Location
    Just outside the gates of freedom
    Posts
    71
    Quote Originally Posted by RuralGuy View Post
    Oh no, your not using Lookup Fields in tables are you? http://www.mvps.org/access/lookupfields.htm
    All they do is confuse the programmer.
    Mission Accomplished. All lookup fields removed from tables and data remains intact. Wheww!

  4. #19
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Now I need to look back to see why we got on this topic in the first place.

  5. #20
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Ah...ha. Look back at my post #12. Oops!

  6. #21
    usmcgrunt's Avatar
    usmcgrunt is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Aug 2010
    Location
    Just outside the gates of freedom
    Posts
    71
    Quote Originally Posted by RuralGuy View Post
    Ah...ha. Look back at my post #12. Oops!
    Ah yes! give me a minute and I will explain what I did. It worked but I am not sure it is the most efficient way. To be brief, it involved creating a query based on a table and then sorting the query by a non-primary key. But I also had to reference a different query in my form for the combobox to sort correctly.

    More details in a minute.

    I have to fix a table first. I had a field that was formatted as text but I needed number so I lost all my data. Luckily I saved it to an excel file so I am fixing it and then will import it.

  7. #22
    usmcgrunt's Avatar
    usmcgrunt is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Aug 2010
    Location
    Just outside the gates of freedom
    Posts
    71
    Ok, so what I did was base the subform in question off of one query and then I based the combobox off another. Now when I click on the combo box the records are ordered by the Reference Number, an AlphaNumberic value, and not the primary key (autonumber). So the values sort from A to Z just the way I needed.

    Here are the details of the queries:

    qryReferenceData (all fields from tblReferenceData & tbleReferenceList) See my first post. This is the recordsource for the subform.

    qryReferenceList (just the field from tbleReferenceList sorted by RefNum) See my first post. This is the recordsource for the combobox in the subform.

    Please tell me I learned something since I did not learn how to use the OrderBy clause.

    Leaving work now. So I may not reply back for 30 minutes or so.

  8. #23
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    There is a lot to be said for "It works the way I wanted". If that is the case, who am I to make any changes. You done good! Mark it Solved if you are ready.

  9. #24
    usmcgrunt's Avatar
    usmcgrunt is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Aug 2010
    Location
    Just outside the gates of freedom
    Posts
    71
    SOLVED it its!

  10. #25
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Taa Daa! Another satisfied customer.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Sorting a Report by a Calculated field
    By mulefeathers in forum Reports
    Replies: 1
    Last Post: 05-22-2010, 08:21 PM
  2. sorting a field in report
    By Philangr8 in forum Reports
    Replies: 3
    Last Post: 08-26-2009, 05:38 PM
  3. Primary Key Help
    By phoenix13 in forum Access
    Replies: 4
    Last Post: 07-30-2009, 12:36 PM
  4. Replies: 1
    Last Post: 06-01-2009, 01:09 PM
  5. about the primary key!
    By Yuesko in forum Access
    Replies: 1
    Last Post: 05-29-2009, 04:20 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