Hi and TIA! I was wondering how to use condition formatting to place arrows
in an unbound control. So if I compare a value on my form with another
value, and the new value is >then the old value I would like to show an
arrow pointing up, if it's less an arrow down, etc. Is this possible.
Thanks for you time!
--
Reggie
---------- 5 1382
On Wed, 28 Jul 2004 13:55:40 -0700, Reggie wrote: Hi and TIA! I was wondering how to use condition formatting to place arrows in an unbound control. So if I compare a value on my form with another value, and the new value is >then the old value I would like to show an arrow pointing up, if it's less an arrow down, etc. Is this possible. Thanks for you time!
Not using Conditional formatting.
In Single Form View only:
Set the unbound control's FontStyle to Wingdings.
Then code the Form's Current event...
If ANumberControl > SomeValue Then
SomeControl = Chr(241)
ElseIf ANumberControl < SomeValue Then
SomeControl = Chr(242)
Else
ANumberControl = ""
End If
If the values are user input in the form, place the same code in the
that control's AfterUpdate event as well.
The above is not suitable for continuous form view.
Note: Other arrow styles are available. Check the Character Map
(located in Start + All Programs + Accessories) for additional styles.
Just substitute the chr() value.
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
Fred, Thanks! I am using a single form view so this will work great. For
some reason I always forget about those WingDingyThingy's.
--
Reggie
----------
"fredg" <fg******@example.invalid> wrote in message
news:1u*****************************@40tude.net... On Wed, 28 Jul 2004 13:55:40 -0700, Reggie wrote:
Hi and TIA! I was wondering how to use condition formatting to place
arrows in an unbound control. So if I compare a value on my form with another value, and the new value is >then the old value I would like to show an arrow pointing up, if it's less an arrow down, etc. Is this possible. Thanks for you time!
Not using Conditional formatting.
In Single Form View only:
Set the unbound control's FontStyle to Wingdings.
Then code the Form's Current event... If ANumberControl > SomeValue Then SomeControl = Chr(241) ElseIf ANumberControl < SomeValue Then SomeControl = Chr(242) Else ANumberControl = "" End If
If the values are user input in the form, place the same code in the that control's AfterUpdate event as well.
The above is not suitable for continuous form view.
Note: Other arrow styles are available. Check the Character Map (located in Start + All Programs + Accessories) for additional styles. Just substitute the chr() value.
-- Fred Please only reply to this newsgroup. I do not reply to personal email.
Fred, Another side question. I selected the character map and selected
wingdings from the drop-down box. I don't see anything in there with 241 0r
242 like you explained. I did use it in my code, and it did display arrows,
but was wondering how/where you got the values above from. I do see the
Character code at the bottom, but all I get are hex numbers like 0xE8 etc.
Any advice would be appreciated. Thanks again.
--
Reggie
----------
"fredg" <fg******@example.invalid> wrote in message
news:1u*****************************@40tude.net... On Wed, 28 Jul 2004 13:55:40 -0700, Reggie wrote:
Hi and TIA! I was wondering how to use condition formatting to place
arrows in an unbound control. So if I compare a value on my form with another value, and the new value is >then the old value I would like to show an arrow pointing up, if it's less an arrow down, etc. Is this possible. Thanks for you time!
Not using Conditional formatting.
In Single Form View only:
Set the unbound control's FontStyle to Wingdings.
Then code the Form's Current event... If ANumberControl > SomeValue Then SomeControl = Chr(241) ElseIf ANumberControl < SomeValue Then SomeControl = Chr(242) Else ANumberControl = "" End If
If the values are user input in the form, place the same code in the that control's AfterUpdate event as well.
The above is not suitable for continuous form view.
Note: Other arrow styles are available. Check the Character Map (located in Start + All Programs + Accessories) for additional styles. Just substitute the chr() value.
-- Fred Please only reply to this newsgroup. I do not reply to personal email.
On Thu, 29 Jul 2004 22:13:49 -0700, Reggie wrote: Fred, Another side question. I selected the character map and selected wingdings from the drop-down box. I don't see anything in there with 241 0r 242 like you explained. I did use it in my code, and it did display arrows, but was wondering how/where you got the values above from. I do see the Character code at the bottom, but all I get are hex numbers like 0xE8 etc. Any advice would be appreciated. Thanks again.
Here is my "scientific" method to get the ascii value of a character.
From the Character Map, select the character and copy it to the
clipboard.
Open any database and press ctrl + G (opening the debug window).
Type
? asc("PasteHere") where PasteHere means paste the clipboard inside
the quotes)
Press Enter and you now have the value.
Try chr(225) for a different Up arrow.
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
Fred, awesome. Tricks of the trade!!!! Thanks much!!
--
Reggie
----------
"fredg" <fg******@example.invalid> wrote in message
news:q5****************************@40tude.net... On Thu, 29 Jul 2004 22:13:49 -0700, Reggie wrote:
Fred, Another side question. I selected the character map and selected wingdings from the drop-down box. I don't see anything in there with
241 0r 242 like you explained. I did use it in my code, and it did display
arrows, but was wondering how/where you got the values above from. I do see the Character code at the bottom, but all I get are hex numbers like 0xE8
etc. Any advice would be appreciated. Thanks again.
Here is my "scientific" method to get the ascii value of a character. From the Character Map, select the character and copy it to the clipboard.
Open any database and press ctrl + G (opening the debug window). Type ? asc("PasteHere") where PasteHere means paste the clipboard inside the quotes)
Press Enter and you now have the value. Try chr(225) for a different Up arrow. -- Fred Please only reply to this newsgroup. I do not reply to personal email. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Lowell Kirsh |
last post by:
In Peter Norvig's Infrequently Answered Questions he explains that the
following 2 fnctions look almost identical but are not the same:
def printf(format, *args): print format % args,
def...
|
by: Simon Brooke |
last post by:
I'm investigating a bug a customer has reported in our database
abstraction layer, and it's making me very unhappy.
Brief summary:
I have a database abstraction layer which is intended to...
|
by: stevek |
last post by:
How do I format an integer. Add commas.
1234565 1,234,565
TIA
|
by: Dario Di Bella |
last post by:
Hi all,
we have the following urgent issue affecting our development team.
Initially we had one particular workstation that failed executing
queries on a DB2 database, raising an invalid date...
|
by: Melissa |
last post by:
What specifically causes the Format event of a report's section to fire?
Thanks!
Melissa
|
by: Macca |
last post by:
Hi,
I have a table which has a date/time field. I am storing them as follows :-
01/01/2005 11:25
01/01/2005 19:44
02/01/2005 05:04
|
by: Grumble |
last post by:
Hello,
I have the following structure:
struct foo {
char *format; /* format string to be used with printf() */
int nparm; /* number of %d specifiers in the format string */
/* 0 <= nparm <=...
|
by: David Morris |
last post by:
Hi
Could somebody please explain what the following line of code means
String.Format("{0}\{1}.{2:00}", C:\, myfile.txt, 1
It's actually the first argument that I don't understand. What is...
|
by: Roy |
last post by:
Hi all,
I'm creating a project that should always use this date format when displays
the dates or create dates. The back end database is a SQL Server and I like
to know what is the logical way...
|
by: Carl Trachte |
last post by:
Hello.
Python 3.0.a1 has been released. I'm trying to get the hang of the new
string formatting in the form:
'5.66'
There are more options in PEP 3101 (fill, alignment, etc.), but I'm having...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |