UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Instant Refresh When Using A Button On A Form, Office 2010    
 
   
mscingo
post Mar 20 2012, 09:41 AM
Post #1

UtterAccess Enthusiast
Posts: 59



For some reason I seem to be having an issue with data not immediately refreshing on my form.

I have a form that pulls data from a table to populate a drop down on a form. I have a button on that form that allows users to add a entry to a related table. When adding and closing out of the table that opens, the entry is not refreshing in the dropdown unless I close out of the form and go back in. How can I set this up to immediately refresh?

Thanks!
Go to the top of the page
 
+
Bob G
post Mar 20 2012, 09:45 AM
Post #2

UtterAccess VIP
Posts: 8,106
From: CT



are you having a user input directly into the table ??
Go to the top of the page
 
+
mscingo
post Mar 20 2012, 09:47 AM
Post #3

UtterAccess Enthusiast
Posts: 59



I set up a button on the form which pops up the table and only allows them to add, they can't see any of the other data in the table.
Go to the top of the page
 
+
Peter46
post Mar 20 2012, 09:49 AM
Post #4

UtterAccess VIP
Posts: 7,394
From: Oadby Leics, UK



What you are seeing is normal behaviour. There is no automatic requery of the list; you have to instigate it.

But using a table for the additions gives you no opportunity to do an automatic requery as a table doesn't have associated code. And you have to use code to force the requery.

If you use a form for your new entries instead then you can use the form_close event to run a command like..

Forms!mainformname!comboboxname.requery




Go to the top of the page
 
+
mscingo
post Mar 20 2012, 10:31 AM
Post #5

UtterAccess Enthusiast
Posts: 59



Thanks for the help, I was able to get it to work now!
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 19th May 2013 - 03:14 PM