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

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Run a Macro when a form is run    
 
   
OfflinePK
post Jun 11 2007, 01:23 PM
Post #1

UtterAccess Addict
Posts: 200



Hey I had a question about what event field for my form would be right for wanting to run a macro whenever I started the form. Also, I know this part should go into the macros/tables forum but its related so what the heck. The macro that I want to run when the form starts up is to delete the contents of a table (NOT THE TABLE) and I was wondering about how to do that.

-Matt

Edited by: OfflinePK on Mon Jun 11 14:29:38 EDT 2007.
Go to the top of the page
 
+
Doug Steele
post Jun 11 2007, 01:27 PM
Post #2

UtterAccess VIP
Posts: 17,804
From: Don Mills, ON (Canada)



The form's Open event would likely be the best place to delete the data that's going to be bound to the form. You could also do it in the form's Load event, but you'd likely need to do a Requery on the form then.
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 June 2013 - 09:23 PM