Results 1 to 2 of 2
  1. #1
    tammiep is offline Novice
    Windows 7 Access 2007
    Join Date
    Aug 2010
    Posts
    4

    Automatically update datasheet

    Hi,


    I'm wondering if anyone can help me figure this out. I have a datasheet that was created based on a query. On the datasheet, there is a list of customer names (CustomerName). When the user clicks on a hyperlinked CustomerName, another form opens (frmCustomerDetail). This form has more specific details on each customer. The datasheet remains open when the frmCustomerDetail opens. If the user changes data on the frmCustomerDetail, I would like the already opened datasheet to reflect the current changes. So far, in order for me to get this to work, I have to save the updated frmCustomerDetail, close the datasheet and re-open the datasheet. Then it reflects the changes. Or, I have to save the frmCustomerDetail, and then press the Refresh button for the datasheet.
    Is there any way for the datasheet to be refreshed automatically after new data is entered in the frmCustomerDetail?
    I have already tried using the Requery in the AfterUpdate on both the datasheet and the frmCustomerDetail, but it's still not updating the opened datasheet.

    Thanks very much,
    Tammie

  2. #2
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    I believe the issue you are having is that with the table being open, no changes are being saved. To fix this, what I would do is have the table close when the form is opened (On_Load or On_Open command I believe). When the changing is done. have a button on the form confirm changes, close the form, and open the table again. Hope this helps.

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

Similar Threads

  1. Datasheet and Code
    By dbprogman in forum Forms
    Replies: 7
    Last Post: 07-26-2010, 07:39 AM
  2. Datasheet View
    By Evgeny in forum Programming
    Replies: 6
    Last Post: 04-28-2010, 10:17 AM
  3. Help Automatically running and Update Query
    By JohnRandolphSTL in forum Queries
    Replies: 8
    Last Post: 04-13-2010, 02:08 PM
  4. Cannot hide fields in a datasheet
    By desgordon in forum Forms
    Replies: 2
    Last Post: 08-19-2009, 03:24 PM
  5. Replies: 4
    Last Post: 05-19-2009, 04:15 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