473,395 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Conditinal Format

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

----------
Nov 13 '05 #1
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.
Nov 13 '05 #2
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.

Nov 13 '05 #3
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.

Nov 13 '05 #4
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.
Nov 13 '05 #5
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.

Nov 13 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
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...
15
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...
3
by: stevek | last post by:
How do I format an integer. Add commas. 1234565 1,234,565 TIA
6
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...
3
by: Melissa | last post by:
What specifically causes the Format event of a report's section to fire? Thanks! Melissa
5
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
11
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 <=...
4
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...
13
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...
3
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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...
0
BarryA
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...
1
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...
0
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...
0
marktang
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,...
0
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...
0
Oralloy
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,...
0
tracyyun
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.