Results 1 to 2 of 2
  1. #1
    luvsmel is offline Novice
    Windows XP Access 2007
    Join Date
    Jan 2012
    Posts
    5

    Database for Mileage Reports

    I am at a loss on this database.

    I have 2 tables that contain data that I want to be used to create a "Mileage Log". None of the tables are really relatable and I'm use to working on a system where everything has data integrity.

    I attached 2 pictures:
    Tables - Show the Tables
    Form - Shows how I would like the Form to be setup.

    Form:


    No Problem with these fields:
    Date - From MyLog and default value =todayReason - From MyLog and is a Listbox w/Value list
    Rounding - From MyLog and is a checkbox
    Problems:
    I want these three fields to populate 1 at a time, They pick a Region and it populates StartingLocAbbrev with only the ones with the matching Regions. They pick a StartingLocAbbrev and it populates StartingLocClinic. Same thing with Destination Fields. I can't seem to find this function.

    5 Regions with approx 5 StartingLocAbbrev each and those have approx 10 StartingLocClinic's

    Region - ListBox - Based on a query from ClinicDirectory, Region - Grouped by.
    StartingLocAbbrev - ListBox - Based on a query from ClinicDirectory, StartingLocAbbrev - Grouped by.
    StartingLocClinicBased - ListBox - Based on a query from ClinicDirectory, StartingLocAbbrev


    Save and Calculate button - I have a query that will take the StartLocAbbrev + EndingDestAbbrev, compare to Mileage Table and it gets the right milage, I'm stumped on the save part. I want it to save all the data from the form in a new field and clear the form.

    Any ideas on how better to construct the database/form I'd appriciate.

    In addition.... Once this is complete I will be duplicating the MyLog to Six Employees so they each have their own log but the clinic/mileage directory can be updated only once.

    Thanks,
    Melanie
    Attached Thumbnails Attached Thumbnails Form.gif   Tables.gif  

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,898
    Sounds like you want cascading (dependent) comboboxes. Review http://datapigtechnologies.com/flash...combobox2.html

    Is this a split Form? Form is bound to MyLog table? Controls are bound to fields of table? If so, data is going directly into table. It will be committed to table when form closes. As for the 'clear form', set the form to DataEntry Yes and can only add new records, won't display records already in table. Do a Requery of the form after calcs in the Save and Calc button event. This should refresh the form to a 'blank' state.

    Don't recommend 6 MyLog tables. Instead have another field in table for the userID. Find some way to default this entry based on some sort of login procedure.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Full App - Mileage/Timesheet Example
    By pkstormy in forum Sample Databases
    Replies: 9
    Last Post: 05-27-2015, 03:37 PM
  2. Replies: 7
    Last Post: 02-16-2012, 11:00 AM
  3. Edit reports while others are in the database
    By nkuebelbeck in forum Access
    Replies: 6
    Last Post: 09-15-2011, 03:07 PM
  4. Splitting a Database Question about reports
    By rodeoboy in forum Security
    Replies: 1
    Last Post: 02-15-2011, 10:59 AM
  5. Split Database / Added Security - No Reports now
    By rodeoboy in forum Security
    Replies: 16
    Last Post: 02-11-2011, 10:57 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