PC Review


Reply
Thread Tools Rate Thread

Code Execution on record change

 
 
David
Guest
Posts: n/a
 
      2nd Nov 2006
I have some code that I would like to execute anytime that form changes to a
different record without having to create my own navigation buttons. Is
there anyway to do this?


 
Reply With Quote
 
 
 
 
Brendan Reynolds
Guest
Posts: n/a
 
      2nd Nov 2006

It depends.

Say the form is positioned on record 'A' and the user is about to move to
record 'B'. Do you want your code to be executed while the form is still
positioned on record 'A' and before record 'B' becomes the current record?
In that case, you'll need to provide a custom navigation UI and disable the
built-in navigation methods. But if your code can be executed after record
'B' has become the current record, then you can use the form's Current
event.

--
Brendan Reynolds
Access MVP

"David" <(E-Mail Removed)> wrote in message
news:eCkq7sp$(E-Mail Removed)...
>I have some code that I would like to execute anytime that form changes to
>a different record without having to create my own navigation buttons. Is
>there anyway to do this?
>



 
Reply With Quote
 
David
Guest
Posts: n/a
 
      2nd Nov 2006
I want it to execute when the form has the new data from record b. I'll try
the current event. I'll let you know how it goes.

"Brendan Reynolds" <(E-Mail Removed)> wrote in message
news:ehTB6zp$(E-Mail Removed)...
>
> It depends.
>
> Say the form is positioned on record 'A' and the user is about to move to
> record 'B'. Do you want your code to be executed while the form is still
> positioned on record 'A' and before record 'B' becomes the current record?
> In that case, you'll need to provide a custom navigation UI and disable
> the built-in navigation methods. But if your code can be executed after
> record 'B' has become the current record, then you can use the form's
> Current event.
>
> --
> Brendan Reynolds
> Access MVP
>
> "David" <(E-Mail Removed)> wrote in message
> news:eCkq7sp$(E-Mail Removed)...
>>I have some code that I would like to execute anytime that form changes to
>>a different record without having to create my own navigation buttons. Is
>>there anyway to do this?
>>

>
>



 
Reply With Quote
 
David
Guest
Posts: n/a
 
      2nd Nov 2006
Worked like a charm. I knew it was in there somewhere. lol

Thanks Brendan!!!


"Brendan Reynolds" <(E-Mail Removed)> wrote in message
news:ehTB6zp$(E-Mail Removed)...
>
> It depends.
>
> Say the form is positioned on record 'A' and the user is about to move to
> record 'B'. Do you want your code to be executed while the form is still
> positioned on record 'A' and before record 'B' becomes the current record?
> In that case, you'll need to provide a custom navigation UI and disable
> the built-in navigation methods. But if your code can be executed after
> record 'B' has become the current record, then you can use the form's
> Current event.
>
> --
> Brendan Reynolds
> Access MVP
>
> "David" <(E-Mail Removed)> wrote in message
> news:eCkq7sp$(E-Mail Removed)...
>>I have some code that I would like to execute anytime that form changes to
>>a different record without having to create my own navigation buttons. Is
>>there anyway to do this?
>>

>
>



 
Reply With Quote
 
jakke.aarts@gmail.com
Guest
Posts: n/a
 
      29th Nov 2006
Worked for me also THANKS

 
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
Code Execution on Record Change Take 2 David Microsoft Access 1 2nd Nov 2006 04:42 PM
change a record in table from a form vb code =?Utf-8?B?cm9zcw==?= Microsoft Access VBA Modules 1 27th Oct 2006 03:45 PM
Cursor change during code execution =?Utf-8?B?R2VvZmY=?= Microsoft Excel Programming 2 6th Jul 2006 12:07 AM
code runs well on 3rd execution after getting Error: 3021 on 1st 2 execution =?Utf-8?B?eWFubg==?= Microsoft Access VBA Modules 0 23rd Mar 2004 10:01 AM
Change value in selected record of subform in code Max Moor Microsoft Access Forms 1 10th Dec 2003 12:54 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:00 PM.