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 / New Users / March 2006

Tip: Looking for answers? Try searching our database.

Macro to clear form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MsNadi - 16 Mar 2006 18:25 GMT
I've created a form that will run a query based on the selections chosen in
the form (QBF).  However, at the end of the macro, I would like to the form
to clear to prevent a loop.  How do I do this?

Currently the Macro is set up to run the query based on the selection of an
option box (hence, the loop).  Would it make more sense to have the event be
generated off of a 'command button' after making selections?

Either way - how do I clear a form? :)
Klatuu - 16 Mar 2006 22:19 GMT
The command button would be better.
What do you mean by clear a form?

> I've created a form that will run a query based on the selections chosen in
> the form (QBF).  However, at the end of the macro, I would like to the form
[quoted text clipped - 5 lines]
>
> Either way - how do I clear a form? :)
Ed Robichaud - 17 Mar 2006 15:28 GMT
If you want to remove the values in unbound controls on your fom, just set
them to null or "" after you're done using them.
   Me!myContol = ""

-Ed

> I've created a form that will run a query based on the selections chosen
> in
[quoted text clipped - 9 lines]
>
> Either way - how do I clear a form? :)
 
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.