ballbearing
Technical User
Here's something I did but it needs some tweaking.
Suggestions accepted gladly.
1st the problem:
On a continuous form, when opened, I needed a way to show all accounts that were past due in red. Past due meaning >30 days and a balance greater than $0. I did not want to have to select a record in order for a control(textbox) to show red.
Solution:
What I did was make that textbox transparent and placed another textbox behind it with the controlsource as:
=IIf([Balance]=0,0,Date()-[LastPymtDate]). Then I set conditional formatting for the backcolor and text to be red if >30.
Now, if the Balance is $0 then nothing happens, and if the Date difference is >30 the textbox shows up red.
Clear as mud, right?
Works good but now here's problem:
If that "front" textbox is selected, the formatted (red) textbox behind it gets the focus, and all I see is a red box. Even when I set both textboxes "data" to be disabled and locked, it still gets focus.
Question:
I don't believe I can conditionally format a textbox based upon the values of the 2 other textboxes, can I?
I'm open to ideas.
Gawd I love this Access stuff..too bad I don't know what I'm doing.
Suggestions accepted gladly.
1st the problem:
On a continuous form, when opened, I needed a way to show all accounts that were past due in red. Past due meaning >30 days and a balance greater than $0. I did not want to have to select a record in order for a control(textbox) to show red.
Solution:
What I did was make that textbox transparent and placed another textbox behind it with the controlsource as:
=IIf([Balance]=0,0,Date()-[LastPymtDate]). Then I set conditional formatting for the backcolor and text to be red if >30.
Now, if the Balance is $0 then nothing happens, and if the Date difference is >30 the textbox shows up red.
Clear as mud, right?
Works good but now here's problem:
If that "front" textbox is selected, the formatted (red) textbox behind it gets the focus, and all I see is a red box. Even when I set both textboxes "data" to be disabled and locked, it still gets focus.
Question:
I don't believe I can conditionally format a textbox based upon the values of the 2 other textboxes, can I?
I'm open to ideas.
Gawd I love this Access stuff..too bad I don't know what I'm doing.