[FONT="]Hello, I need your help to solve a problem concerning conditional formatting: I have a form "MascheraUno" with a subform "MiaSottoMaschera" (containing a field called "PrezzoA"), a button that opens a "MascheraDue" form ( which contains a field called "PriceB") and an unassociated text box "txtPippo", which I would like to change color depending on whether "PriceB" is greater or less than "PriceB". On "txtPippo" I applied conditional formatting with these two expressions:[/FONT]
[FONT="]1) [MiaSottoMaschera]! [PrezzoA]> Forms! [MascheraDue]! [PrezzoB][/FONT]
[FONT="]The txtPippo box turns red[/FONT]
[FONT="]2) [MiaSottoMaschera]! [PrezzoA]> Forms! [MascheraDue]! [PrezzoB][/FONT]
[FONT="]3) The txtPippo box turns green[/FONT]
[FONT="]I then added on the After update event of the main form (where the subform is located and the button that opens the “MascheraDue”) this code:[/FONT]
[FONT="][Forms]! [MascheraUno] .refresh[/FONT]
[FONT="]Unfortunately, however, it only works once in a while. It's normal? Can I solve with Vba code?[/FONT]
[FONT="]Thanks to those who want to help me[/FONT]
[FONT="]1) [MiaSottoMaschera]! [PrezzoA]> Forms! [MascheraDue]! [PrezzoB][/FONT]
[FONT="]The txtPippo box turns red[/FONT]
[FONT="]2) [MiaSottoMaschera]! [PrezzoA]> Forms! [MascheraDue]! [PrezzoB][/FONT]
[FONT="]3) The txtPippo box turns green[/FONT]
[FONT="]I then added on the After update event of the main form (where the subform is located and the button that opens the “MascheraDue”) this code:[/FONT]
[FONT="][Forms]! [MascheraUno] .refresh[/FONT]
[FONT="]Unfortunately, however, it only works once in a while. It's normal? Can I solve with Vba code?[/FONT]
[FONT="]Thanks to those who want to help me[/FONT]