Problem with the OnClick event of the datasheet part of a split fo

This is a discussion on Problem with the OnClick event of the datasheet part of a split fo within the ADO DAO RDO RDS forums in Framework and Interface Programming category; Hello! I have a strange problem! I have created a split form (Access 2007) with two text boxes (say txtA (bound), and txtB (unbound)). Using the OnClick Event, I try to update txtB from txtA. It works perfectly if I click txtA on the Form body; but not when I click a txtA cell on the datasheet part; however, when I use the debugger and step through the VBA code, both clicks work and txtB gets updated. Any ideas? Abbas...

Go Back   Application Development Forum > Framework and Interface Programming > ADO DAO RDO RDS

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 09-08-2008, 05:40 AM
Abbas
Guest
 
Default Problem with the OnClick event of the datasheet part of a split fo

Hello!
I have a strange problem!
I have created a split form (Access 2007) with two text boxes (say txtA
(bound), and txtB (unbound)). Using the OnClick Event, I try to update txtB
from txtA. It works perfectly if I click txtA on the Form body; but not when
I click a txtA cell on the datasheet part; however, when I use the debugger
and step through the VBA code, both clicks work and txtB gets updated.
Any ideas?
Abbas

Reply With Quote
  #2  
Old 09-08-2008, 06:03 AM
Abbas
Guest
 
Default RE: Problem with the OnClick event of the datasheet part of a split fo

Correction: When I use the debugger, clicking on a txtA cell on the datasheet
part, 'Intermittently', updates txtB!

"Abbas" wrote:

> Hello!
> I have a strange problem!
> I have created a split form (Access 2007) with two text boxes (say txtA
> (bound), and txtB (unbound)). Using the OnClick Event, I try to update txtB
> from txtA. It works perfectly if I click txtA on the Form body; but not when
> I click a txtA cell on the datasheet part; however, when I use the debugger
> and step through the VBA code, both clicks work and txtB gets updated.
> Any ideas?
> Abbas
>

Reply With Quote
  #3  
Old 09-08-2008, 06:42 AM
Abbas
Guest
 
Default RE: Problem with the OnClick event of the datasheet part of a spli

Hello!
I found out why using the debugger, intermittently updates txtB!! Actually,
when I use full screen debugger and switch between VB and Form windows, txtB
gets updated but when i have split windows, it doesn't. So, this suggests
that the process requires refreshing the Form; i added Me.Refresh and it
worked!!

Abbas


"Abbas" wrote:

> Correction: When I use the debugger, clicking on a txtA cell on the datasheet
> part, 'Intermittently', updates txtB!
>
> "Abbas" wrote:
>
> > Hello!
> > I have a strange problem!
> > I have created a split form (Access 2007) with two text boxes (say txtA
> > (bound), and txtB (unbound)). Using the OnClick Event, I try to update txtB
> > from txtA. It works perfectly if I click txtA on the Form body; but not when
> > I click a txtA cell on the datasheet part; however, when I use the debugger
> > and step through the VBA code, both clicks work and txtB gets updated.
> > Any ideas?
> > Abbas
> >

Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 01:33 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.