Form not firing AfterUpdate 
Author Message
 Form not firing AfterUpdate

We have a form that is not firing the AfterUpdate event, nor is it sending
the resync command to SQL Server.  Does anyone know what could cause this?

We have many forms that function using the same mechanisms, and they both
fire AfterUpdate and send the resync command, as witnessed through SQL
profiler.

Thanks.

Joel

SQL2K, Office2k SR1



Sun, 16 Nov 2003 05:46:38 GMT  
 Form not firing AfterUpdate
How did you create the link between the Form and the event procedure?

I have noticed before that when I create the event procedure in the VBA
editor that a link is not always established. When I edit the form's
properties in the form designer the After Update property is blank rather
than [Event Procedure]. When I click on the ... button then code builder
then it creates the link and fills in [Event Procedure].

Hardy


Quote:
> We have a form that is not firing the AfterUpdate event, nor is it sending
> the resync command to SQL Server.  Does anyone know what could cause this?

> We have many forms that function using the same mechanisms, and they both
> fire AfterUpdate and send the resync command, as witnessed through SQL
> profiler.

> Thanks.

> Joel

> SQL2K, Office2k SR1



Sun, 16 Nov 2003 07:57:05 GMT  
 Form not firing AfterUpdate
Quite so, Hardy, and thanks for your response.  I too was aware of this
long-standing Access 'feature', but I did not remember it this time until
just before reading your post.  That was indeed the problem with the
AfterUpdate event.

However, the ResyncCommand still is not getting sent to SQL Server.  If I
modify a record, SQL Profiler reveals that the UPDATE command is sent to
update the record in the database, but it is not followed by the command
contained in the ResyncCommand property.  Other forms doing the same thing
send two commands, first the UPDATE, then the resync.

I have created a new form from scratch, and it has the same problem.  I
tried several different SQL strings as ResyncCommand, and tried setting the
property both in the property pages at design time and from code at runtime.

Ideas anyone?

TIA

Joel


Quote:
> How did you create the link between the Form and the event procedure?

> I have noticed before that when I create the event procedure in the VBA
> editor that a link is not always established. When I edit the form's
> properties in the form designer the After Update property is blank rather
> than [Event Procedure]. When I click on the ... button then code builder
> then it creates the link and fills in [Event Procedure].

> Hardy



Mon, 17 Nov 2003 02:43:30 GMT  
 Form not firing AfterUpdate
A little more info...

Here's exactly what is happening in Profiler:

The forms that do not work send the following commands after a record has
been updated.

    SET ROWCOUNT 0
    <update command>

A form that does work issues the following commands:

    SET NO_BROWSETABLE ON
    <update command>
    <resync command>
    SET NO_BROWSETABLE OFF

Can anyone help?

Thanks,

Joel


Quote:
> How did you create the link between the Form and the event procedure?

> I have noticed before that when I create the event procedure in the VBA
> editor that a link is not always established. When I edit the form's
> properties in the form designer the After Update property is blank rather
> than [Event Procedure]. When I click on the ... button then code builder
> then it creates the link and fills in [Event Procedure].

> Hardy



> > We have a form that is not firing the AfterUpdate event, nor is it
sending
> > the resync command to SQL Server.  Does anyone know what could cause
this?

> > We have many forms that function using the same mechanisms, and they
both
> > fire AfterUpdate and send the resync command, as witnessed through SQL
> > profiler.

> > Thanks.

> > Joel

> > SQL2K, Office2k SR1



Sat, 22 Nov 2003 11:02:47 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. AfterUpdate of form not firing in a Project

2. AfterUpdate of form not firing in a Project

3. AfterUpdate and LostFocus Events do not fire

4. Listbox - nav to rec by keystroke does not fire AfterUpdate

5. Listbox - nav to rec by keystroke does not fire AfterUpdate

6. Listbox - nav to rec by Alpha does not fire AfterUpdate

7. Listbox - nav to rec by keystroke does not fire AfterUpdate

8. Modal Form: Form Load, Form Open, Form Activate events do not Fire

9. AfterUpdate on Textbox fires more than once.

10. Firing AfterUpdate Event


 
Powered by phpBB® Forum Software © phpBB Group