Results 1 to 8 of 8
  1. #1
    Penz is offline Novice
    Windows XP Access 2000
    Join Date
    Oct 2009
    Posts
    6

    Order of data in forms

    I've just upgraded from MS Office 2000 to Office 2007. I don't like it .... but I suppose I'll have to get used to it.

    One specific problem I'm having in MS Access is this:

    When I enter data into subforms, eg

    Re: 1, The Road
    Call out to electrical fault


    Repair
    Install new switch

    it then gets displayed in alphabetical order rather than the order I've entered it:

    Call out to electrical fault
    Install new switch
    Re: 1, The Road
    Repair

    ... which looks nonsense .... so how do I stop it doing this?

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Add a TimeStamp field to your RecordSource fill it with Now() in the BeforeUpdate event of the SubForm. Then sort on this field in the query.

  3. #3
    Penz is offline Novice
    Windows XP Access 2000
    Join Date
    Oct 2009
    Posts
    6
    Allan

    I did think about that ..... but I've already got thousands of entries over the last 5 years (That worked fine in MS Access 2000) ....... so if I add a time field, what happens to all those entries??

    I'm hoping someone can identify a setting that can be altered to restore the status quo.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    What is the RecordSource of the SubForm? If it is a query then can you post the SQL for it here?

  5. #5
    Penz is offline Novice
    Windows XP Access 2000
    Join Date
    Oct 2009
    Posts
    6
    Hi Allan

    Thanks for replying

    It's not a query ... it's a form based on a two field table (job number & job detail) ... it is linked to a job table which has all the other fields, client number, job number, date, time, Etc. which is in turn linked to the client table.


    Paul

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I would still create a query of that table because there is very little that can be done directly with a table. I take it you are filling in [job number] with the Link Fields and typing into the [job detail] field in the SubForm?

  7. #7
    Penz is offline Novice
    Windows XP Access 2000
    Join Date
    Oct 2009
    Posts
    6
    Yes Allan ... doing it exactly as you say for data input.

    I use queries for variables, eg. to determine the data shown in a report ..... but I don't understand how or why a query would help here.

    I ordered an MS Access 2007 'step by step' book last week, but the darn thing hasn't arrived so I can't even look it up.

  8. #8
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    With a query you can specify an OrderBy clause.

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

Similar Threads

  1. Importing data via forms
    By PaulOakley in forum Import/Export Data
    Replies: 2
    Last Post: 04-10-2009, 08:45 PM
  2. Inserting data through forms
    By nivi30 in forum Forms
    Replies: 1
    Last Post: 12-17-2008, 07:57 AM
  3. Populating Data in forms
    By cjbeck71081 in forum Forms
    Replies: 4
    Last Post: 01-16-2007, 04:15 PM
  4. inport data into invoice from Purchase order database
    By Wrangler in forum Import/Export Data
    Replies: 2
    Last Post: 10-30-2006, 12:28 PM
  5. How to report data in fical year order
    By gemini2 in forum Reports
    Replies: 1
    Last Post: 05-27-2006, 06:26 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