Results 1 to 6 of 6
  1. #1
    salisbut is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jun 2010
    Posts
    52

    Creating form for data entry


    I currently have a database where the majority of the information is taken from imported data from an excel spreadsheet. The remainder of it is hardcoded in. I have a table which does this called tblHardcode. In each month there are 34 different records which must be manually entered. Currently the database user inputs these in the tblHardcode. What I would like to do is create a form which only shows the specific month that they would like to edit instead of showing the entirety of the table. I also would like to customize the order of the entries instead of them being specifically alphabetical. Where do I start and how do I deal with reorganizing fields. I have attached database. The only questions I have are about tblHardcode.

  2. #2
    jgelpi16 is offline Expert
    Windows XP Access 2010 32bit
    Join Date
    Mar 2010
    Location
    Charlotte, NC
    Posts
    544
    You can handle the sort a couple of ways. You can either set up a field in your tblHardcode called "Sort" and set it to an Autonumber. You can also open the Record Source of your form and set the "Sort" attribute to Ascending/Descending of the field you want to sort by. If you have a date field in your tblHardcode you can set the Criteria of your Record Source to "BETWEEN DateSerial(Year(Date()), Month(Date()), 1) and DateSerial(Year(Date()), Month(Date()), 0)" (minus the "s). This will show everything for last month. OR you can do "BETWEEN DateSerial(Year(Date()), Month(Date()), 1) and Date()" to show between the beginning of last month and today.

  3. #3
    salisbut is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jun 2010
    Posts
    52
    Ok thanks I am making good progress! Form is currently up and running with five fields: Company, Month, Year, $Amount, MW. The date sort worked like a charm and now it has the specific data for a month. Now the data for the month is sorted alphabetically by the company. How do I apply a custom sort to companies? For example I would like some to be grouped together that are not near each other in the alphabet because they strongly correlate to each other for data entry.

  4. #4
    salisbut is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jun 2010
    Posts
    52
    It is impossible to do nested iff's because there are 31 records which would be past limitations

  5. #5
    jgelpi16 is offline Expert
    Windows XP Access 2010 32bit
    Join Date
    Mar 2010
    Location
    Charlotte, NC
    Posts
    544
    If the companies are related, but not alphabetically I think you would need to add the sort column to your table. I would recommend creating a "company" table and adding the company name and a "sort" field. Link that table into your form record source and sort on the company sort. This should pull your like companies together.

  6. #6
    salisbut is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jun 2010
    Posts
    52
    Solved! Thanks for the quick responses!

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

Similar Threads

  1. Creating an Entry Form
    By Bike in forum Forms
    Replies: 1
    Last Post: 03-28-2011, 11:48 PM
  2. Form for Data Entry
    By cherkey in forum Forms
    Replies: 4
    Last Post: 02-15-2011, 02:40 PM
  3. Data entry form
    By adept in forum Forms
    Replies: 1
    Last Post: 08-20-2010, 10:13 PM
  4. Sub Form Data Entry
    By OldBloke in forum Forms
    Replies: 1
    Last Post: 08-09-2010, 06:58 AM
  5. Creating data entry form
    By ksukat in forum Forms
    Replies: 3
    Last Post: 03-11-2010, 04:55 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