Results 1 to 3 of 3
  1. #1
    Freddie81 is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Mar 2018
    Posts
    149

    Refresh data in datasheet from

    So just when I thought i won Acces shovels a new hickup onto my porch.






    What I wanted to do:

    I have a datasheet with qoutes on it. When I click on the qoute number it opens a new form containing the info from that qoute. If I click on a blank field it opens the form to add new data. What I want is to refrsh the datasheet with the new info when I close the form so I coded a on form close event with Forms!QouteDS.requery which works fine.




    The new problem:

    I have navigation form as per screenshot. The navigation form runs a form called qoutesF which has th datasheet aas a subform (second screnshot). Now everytime I click on the qoute nr and the new for opens with the record data and I close that frm i get an error that access cannot fid Qoutesds( datasheet form) so it cant requery it.

    Any advice on how to get past this issue?Click image for larger version. 

Name:	mainF.JPG 
Views:	18 
Size:	45.7 KB 
ID:	33854Click image for larger version. 

Name:	QoutesF.JPG 
Views:	18 
Size:	43.3 KB 
ID:	33855

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Possible options:

    1. Click 'Refresh All' on the ribbon

    2. VBA code: CommandBars.ExecuteMso "DataRefreshAll"
    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.

  3. #3
    Freddie81 is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Mar 2018
    Posts
    149
    Thank you very much June7..it worked perfectly

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

Similar Threads

  1. Refresh Data in Excel on User's PC
    By DomSza in forum Access
    Replies: 2
    Last Post: 11-15-2017, 10:24 AM
  2. Refresh data on menu form
    By bibbyd01 in forum Forms
    Replies: 3
    Last Post: 04-19-2012, 08:48 AM
  3. Automatically Refresh datasheet/tables
    By akira in forum Access
    Replies: 4
    Last Post: 02-07-2012, 01:39 PM
  4. refresh update data problems
    By whm1 in forum Forms
    Replies: 1
    Last Post: 03-19-2010, 01:49 PM
  5. refresh datasheet as text changes
    By mkhan in forum Forms
    Replies: 0
    Last Post: 09-06-2008, 07:46 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