Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / November 2007

Tip: Looking for answers? Try searching our database.

refresh

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Joe C - 14 Nov 2007 17:05 GMT
Hello,

How do I refresh a form in a macro and using code?

Thanks

JC
Vtek
Dorothy - 14 Nov 2007 17:21 GMT
> Hello,
>
[quoted text clipped - 4 lines]
> JC
> Vtek

Hello.  You can use the "On Click" command where you would have a
button that you would click that refreshes the form.  This is found in
the properties of the button.  In the VBA, you can write code that
contains the formulas that would refresh the data.

For example, let's say you have a field that calculates a rate
multiplied by 10.  Here's a snippet of the code you could use.

Sub Button_Click()

me.rate = me.rate*10

end sub

Hope this helps!

Dorothy
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.