Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    joecamel9166 is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Feb 2016
    Posts
    85

    Auto Entering Date Field


    I have a table with 5 forms bound to it. (all forms enter different to different fields)


    This is for a repair database, so I have one form to receive, one to evaluate, quote, repair, and one to ship.
    As each form filled out I need to enter the date to the table so it can be put on the report that generates the invoices upon completion.

    What is happening now, is as soon as the record is created, I am getting that date for all date fields.

    Thanks!


  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2013
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,614
    Never seen a useful db with just one table. Is your db properly normalized.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    joecamel9166 is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Feb 2016
    Posts
    85
    I believe so. There are more than one table, but this one just holds the data for each unit that comes in. I also have customer table, parts table, etc.
    Everything relates to the UnitID which is the primary key. Do you think it would be better to break everything down to individual tables for each step? I feel there would be a lot of redundancies that way.

  4. #4
    joecamel9166 is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Feb 2016
    Posts
    85
    P.S. I am redoing our database that was originally written in Paradox 4.5

  5. #5
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2013
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,614
    What is happening now, is as soon as the record is created, I am getting that date for all date fields.
    Do you mean that each record has more than one date field or that you have one date field for each record and the data in this field is being changed for all records when you create a new record.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  6. #6
    joecamel9166 is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Feb 2016
    Posts
    85
    each record has more than one date field

  7. #7
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2013
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,614
    Just to be clear
    each record has more than one date field
    each of these fields changes when a new record is created?
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  8. #8
    joecamel9166 is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Feb 2016
    Posts
    85
    yes that is correct

  9. #9
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2013
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,614
    When are these other date fields populated, when the first date field has data entered or perhaps when the record is saved.
    Are they all the same date
    Could it be that you have some code that is setting their values
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  10. #10
    joecamel9166 is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Feb 2016
    Posts
    85
    I am using the now function on all date fields. When I close the first form, it saves and that's when all the date fields get populated. I don't have any other code in it

  11. #11
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2013
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,614
    I'm guessing that you're using the Now() function as the Default value setting of each field in the table properties. If so, try removing it and use it as the Default Value setting of the control on each of your forms.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  12. #12
    joecamel9166 is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Feb 2016
    Posts
    85
    Got it. Thanks!

  13. #13
    joecamel9166 is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Feb 2016
    Posts
    85
    OK so this solution worked for the first form with a new record.
    Now I am working on the rest of the forms.
    (Each record has a receive date, eval date, quote date, repair date, ship date)
    When I open the eval form, all the data I need to enter can be entered manually, No problem there, but I want the date field to be automatic.
    The only way I can get the date field to be inserted with the Now() function is to have it go into an unbound textbox.
    As soon as that box is linked to the control source, nothing happens.

  14. #14
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2013
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,614
    Can you attach a copy of your db for us to play with.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  15. #15
    orange's Avatar
    orange is offline Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Can you give us a description of your business? An overview of a "typical day at the office" so to speak. As Bob mentioned, rarely do we see an operational database application with a 1 table database.

    Yes I think posting a copy of the database would help us put your post into context also.

    You may find this free data model of an Equipment Repair Business from Barry Williams'site helpful in organizing your data.

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

Similar Threads

  1. Replies: 3
    Last Post: 08-21-2015, 08:14 AM
  2. Replies: 15
    Last Post: 01-13-2014, 11:54 AM
  3. Splitting a field - entering a date range
    By dusencha in forum Database Design
    Replies: 3
    Last Post: 09-19-2013, 12:05 PM
  4. Replies: 3
    Last Post: 08-16-2012, 11:25 AM
  5. Replies: 2
    Last Post: 09-25-2011, 08:52 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