why? form couldn't refresh when using split form

J

Jason Jiang

Dear
I got a problem with split form. I am not sure if it's a bug of access 2007.

I added a label in my form named "lblFEType" and a section of code like
this:

Private Sub Form_Current()
lblFEType.Caption = IIf(isHandler(Me![PayerNo]), "Import", "Export")
End Sub

It totally work when I use "Record Navigator Botton"(I am sure if it's the
correct call in English version).

But it wouldn't work when I jump the record by clicking the datasheet part
of the split form. The bindedfield works fine and the data will show
correctly, but the label control doesn't update.

I've tracked the code. The above code indeed runs. But the form seems not to
be refresh. I've try add the command like
me.refresh
me.requery
me.repaint

Anyhow it doesn't work. The same situation occurs when I try to change the
bottons' "enabled" property.

Please kindly help me.

With best regards

Jason
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top