Results 1 to 2 of 2
  1. #1
    PMBott is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2012
    Posts
    1

    Sorting in spreadsheet view on a form

    I have a database that I inherited, therefore I did not set it up. I have a form that has the record source as the tasks table. I know enough about access to get myself in "trouble" to make changes to the database. Although I do not know enough to change the record source to a query without breaking everything else, as I realize that a query is common setup protocol. Within the form I have a field called due date that I put in this formula =DateAdd('d',-[Days Out],[Start Date]). The form is in spreadsheet view. The formula is working just as I need it to, but when I view the form (in spreadsheet view) I need the due date field to be able to be sorted. I have altered the properities to order by tasks.due date and that does not work. Why am I unable to sort or do a orderby in this field. The other fields can be sorted but this one will not. Is it because there is a formula? Is there a work around?

    Thanks
    PMBott

  2. #2
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    You could do your calculation in a Query by adding a 'Due_Date' field to the query:
    Code:
    Due_Date: DateAdd('d',-[Days_Out],[StartDate])
    Sort the Due_Date field in the query.
    Base your form on the query [Form - Property Sheet - Data - Record Source].

    Hope this helps!

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

Similar Threads

  1. Replies: 1
    Last Post: 03-05-2012, 04:21 PM
  2. Replies: 10
    Last Post: 11-09-2011, 01:56 PM
  3. Replies: 4
    Last Post: 05-24-2011, 08:19 AM
  4. Replies: 1
    Last Post: 10-24-2010, 11:32 AM
  5. Replies: 2
    Last Post: 02-19-2010, 08:05 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