Results 1 to 6 of 6
  1. #1
    DanKoz is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2011
    Posts
    16

    Date Picker Not Updating Bound Control

    I have a simple form with several buttons to open data input forms or to run reports.



    There are also two date fields on the form used to select the date range for reports. The two date input text boxes are bound to date fields in a table.

    When I select one of the date input boxes on the form the date picker does appear and the date I selected with the picker does appear in the text box, but the value is not updated in the table that has the bound date field. Shouldn't this happen automatically? or do I need to write some code for the OnChange or other event?

    If code is needed a sample would be appreciated.

    Thank you.

    Dan

  2. #2
    DanKoz is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2011
    Posts
    16
    I should point that if I make then changes in the date fields on the form using the date picker and then save the form then the dates do get updated in the related table. But do I have to save the form each time? shouldn't the table fields get updated as soon as the form field gets updated?

  3. #3
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Changed fields are only automatically saved as you leave a record or close the form.

  4. #4
    DanKoz is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2011
    Posts
    16
    Thank you!

    My intent was to allow the user to run a report after they made the date selections. I was planning on keeping the form with the date fields open in the background while I present the reports. Is there a way to do that (i.e., keep the form open) or do I have to close the form and then open the report?

    Thanks for your help.

    Dan

  5. #5
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You can set the Form as invisible and run the report with the acDialog parameter and make the form visible after the report completes.

  6. #6
    DanKoz is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2011
    Posts
    16
    Thank you. I will brush up a bit to learn how to do this.

    Dan

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

Similar Threads

  1. Date Picker?
    By gazzieh in forum Forms
    Replies: 9
    Last Post: 02-09-2013, 09:35 AM
  2. Date Picker
    By otisdaddy in forum Database Design
    Replies: 2
    Last Post: 07-01-2011, 12:30 PM
  3. date picker activex control
    By mr2000 in forum Forms
    Replies: 1
    Last Post: 10-13-2010, 09:51 AM
  4. Updating using form bound to a query
    By onechriswhite in forum Forms
    Replies: 5
    Last Post: 07-25-2010, 04:04 AM
  5. Date picker
    By BI4K12 in forum Access
    Replies: 1
    Last Post: 06-09-2010, 11:11 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