Results 1 to 9 of 9
  1. #1
    Reidy is offline Novice
    Windows 10 Access 2016
    Join Date
    Oct 2017
    Posts
    5

    Tab clears form fields after i choose date picker

    Hi,



    I'm a complete Access noob so please be patient. My issue is this

    Basically i've created a very simple set of3 tables customer, order, part code and have what I think is working relationships.

    I created a form so I can enter a new customer name and it has its own unique ref and I can add part codes and an order date.

    Ive set the tab order but there are two issues.

    1. The date picker auto goes to 01/01/1900
    2. I can change the date picker but then when I tab past it it wipes all the other fields

    Click image for larger version. 

Name:	tab clears form pic.PNG 
Views:	18 
Size:	12.1 KB 
ID:	30700

  2. #2
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Not sure I understand your issues. Can you post your database?

  3. #3
    Reidy is offline Novice
    Windows 10 Access 2016
    Join Date
    Oct 2017
    Posts
    5
    Hi, yes how do I do that. I cant attach it as it is over the size limit?

  4. #4
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Do a compact and repair, then zip it. Remove some data if it is still over the size limit, we only need a sample.

  5. #5
    Reidy is offline Novice
    Windows 10 Access 2016
    Join Date
    Oct 2017
    Posts
    5

    Database

    See attached database

    Open the form and you will see firstly the calender always default to the year 1900, secondly when you change the date ad tab on to the next field it wipes the other fields and then you cant save it or close it without an error as its lost its data
    Attached Files Attached Files

  6. #6
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    I have given you a basic new form, along with new tables, on how to begin entering orders. The reason I created new tables was purely to show you the naming conventions which are generally used, such as removal of spaces. This should give you a place to start.
    Attached Files Attached Files

  7. #7
    Reidy is offline Novice
    Windows 10 Access 2016
    Join Date
    Oct 2017
    Posts
    5
    Hi,

    That's great. So a couple of things. Can you tell me where I went wrong?

    Why did the calender always start at the year 1900
    I see very little difference in what we both did, what did you do differently?
    On the order form I want to be able to add a new customer as well as picking from the existing list but that field seems locked to the customers entered in the customer table

  8. #8
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    I don't know why the date was at 1900, when I went to add a new record it worked as it should. I couldn't work out the tab thing either. Best in these cases to start afresh.

    To add a new customer, you can run an append query in the NotInList event which appends a record to the customer table.

  9. #9
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Quote Originally Posted by Reidy View Post
    <snip> Can you tell me where I went wrong?

    Why did the calender always start at the year 1900<snip>
    Well, since you asked...... (this is to help you)

    Basically, your design is wrong.
    Click image for larger version. 

Name:	Referiential1.png 
Views:	6 
Size:	39.6 KB 
ID:	30762
    How/why would the customer ID (an autonumber -type Long Integer) be connected to table "Part Codes" on "Part Code" (a text field) ??


    Your form has a record source of
    Click image for larger version. 

Name:	QuoteQuery1.png 
Views:	6 
Size:	23.5 KB 
ID:	30764
    The customer ID (an autonumber) is linked to "Order Date" (a Date/Time)??
    So Access defaults to the earliest date.... 1/3/1900.

    Linking fields (PK/FK) should (must) be the SAME type...


    I would suggest you step back and work through these 3 tutorials before going any further. Actually take the time to do the tutorials, not just watch them.


    Good luck with your project.........

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

Similar Threads

  1. Replies: 11
    Last Post: 06-28-2015, 06:42 PM
  2. Form not displaying Date Picker
    By khughes46 in forum Forms
    Replies: 8
    Last Post: 04-10-2014, 12:56 PM
  3. Microsoft Date And Time Picker on Form
    By ccordner in forum Queries
    Replies: 3
    Last Post: 02-21-2014, 12:35 PM
  4. Replies: 28
    Last Post: 11-16-2013, 06:41 PM
  5. Date criteria using between and form date picker
    By killermonkey in forum Queries
    Replies: 3
    Last Post: 03-21-2013, 12:44 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