PC Review


Reply
Thread Tools Rate Thread

Run vba on form opening

 
 
=?Utf-8?B?SmFtZXM=?=
Guest
Posts: n/a
 
      25th May 2004
How do you run code when a form is opened? Can i embed the code in the form

Jame


 
Reply With Quote
 
 
 
 
Duane Hookom
Guest
Posts: n/a
 
      25th May 2004
The form has an On Open event. You can access it through the event
properties of the form.

--
Duane Hookom
MS Access MVP


"James" <(E-Mail Removed)> wrote in message
news:BF25038B-6F56-4790-B5F9-(E-Mail Removed)...
> How do you run code when a form is opened? Can i embed the code in the

form?
>
> James
>
>



 
Reply With Quote
 
John Vinson
Guest
Posts: n/a
 
      27th May 2004
On Mon, 24 May 2004 18:16:03 -0700, "James"
<(E-Mail Removed)> wrote:

>How do you run code when a form is opened? Can i embed the code in the form?
>
>James
>


Yes to both. Open the Form in design view, and view its Properties.
Select the Events tab, and click the ... icon by either the Open event
(which fires first, before the Form's recordset has been opened or any
of its controls populated; this event can be calcelled) or its Load
event (fires before the user gets control but after the controls have
been filled).

John W. Vinson[MVP]
Come for live chats every Tuesday and Thursday
http://go.compuserve.com/msdevapps?loc=us&access=public
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook 2003 - Close parent form before opening child form Randy Microsoft Outlook Form Programming 4 27th Apr 2010 12:07 AM
Form sync via custom events independent of order of form opening =?Utf-8?B?Sm9obiBG?= Microsoft Access Form Coding 1 5th Dec 2006 10:38 AM
Opening a form a second time from toolbar shows Form in stead of Datasheet Roel Schreurs Microsoft Access Forms 0 2nd Oct 2006 01:13 PM
detect form opening by tabular form or datasheet form =?Utf-8?B?dGhlY3VvbmdqYXBhbg==?= Microsoft Access Form Coding 3 21st Jan 2006 12:00 PM
Opening Form from itsself (recursive opening) Holger Wunderlich Microsoft Access Form Coding 5 26th Aug 2003 01:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:10 PM.