473,387 Members | 1,791 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,387 software developers and data experts.

Chr function

me
I am working as an intern at a place using Access 2003 code builder.

Looking at the cold of the old project t(hat we are redoing), I see
Chr(39)

Chr(91)

Chr(45)

Chr(93)

Chr(42)
An example is this:

strCriteria = (strCriteria & tableColumnName & " LIKE " & Chr(39) &
Chr(42 & )vSearchValue & Chr(42) & Chr(39)
I have no books or resource to use - have no VBA or VB.net installed in
my PC; Can anyone tells me what each of these functions returns?

Jul 21 '06 #1
9 12519
me
BTW, I tried the following (in access) to see what Chr (39) gives but
it gives erroe message.

Private Sub btntest_Click()
Dim strReturn1 As String
strReturn1 = Chr(39)
Form!label1 = strReturn1

Dim strReturn2 As String
strReturn2 = Chr(91)
Form!label2 = strReturn2

End Sub

Is there any way I can test (in Access) to see what Chr(39) gives?

Jul 21 '06 #2
On 21 Jul 2006 16:05:03 -0700, me wrote:
I am working as an intern at a place using Access 2003 code builder.

Looking at the cold of the old project t(hat we are redoing), I see
Chr(39)

Chr(91)

Chr(45)

Chr(93)

Chr(42)

An example is this:

strCriteria = (strCriteria & tableColumnName & " LIKE " & Chr(39) &
Chr(42 & )vSearchValue & Chr(42) & Chr(39)

I have no books or resource to use - have no VBA or VB.net installed in
my PC; Can anyone tells me what each of these functions returns?
Here is how you can find out for yourself what the chr() values are.
Open any VBA code window (i.e. Ctrl + G).
Click on Help.
Select the Index tab.
Type
ASCII
in the Type Keyword box
Click on Search
Then select
Character Set (0 ¡V 127)
in the Choose a Topic box
and read all of the chr values.
For instance, =chr(91) is the close bracket ( ] ) symbol,
= chr(45) is the hyphen ( - ).

--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
Jul 21 '06 #3
ADezii
8,834 Expert 8TB
I am working as an intern at a place using Access 2003 code builder.

Looking at the cold of the old project t(hat we are redoing), I see
Chr(39)

Chr(91)

Chr(45)

Chr(93)

Chr(42)


An example is this:

strCriteria = (strCriteria & tableColumnName & " LIKE " & Chr(39) &
Chr(42 & )vSearchValue & Chr(42) & Chr(39)


I have no books or resource to use - have no VBA or VB.net installed in
my PC; Can anyone tells me what each of these functions returns?
'To find out what all these codes mean simply execute this code within any
'Event (in this case the Click of a Command Button) and view the
'contents of the Immediate Window


Private Sub Command27_Click()
On Error Resume Next

Dim intCounter As Integer

For intCounter = 1 To 255
Debug.Print "Chr(" & Trim(Str(intCounter)) & ") is equivalent to: " & Chr(intCounter)
Next intCounter

End Sub
Jul 22 '06 #4
On 21 Jul 2006 16:37:15 -0700, me wrote:
BTW, I tried the following (in access) to see what Chr (39) gives but
it gives erroe message.

Private Sub btntest_Click()
Dim strReturn1 As String
strReturn1 = Chr(39)
Form!label1 = strReturn1

Dim strReturn2 As String
strReturn2 = Chr(91)
Form!label2 = strReturn2

End Sub

Is there any way I can test (in Access) to see what Chr(39) gives?
Open the debug window (Ctrl + G)
Type
?chr(39)
the character result will appear beneath it
' (the apostrophe)

If you know the character and want to find it's AscII value, type the
character within double quotes.
?Asc("'")
The value will appear beneath it:
39
See my previous reply to your first post for more information.

--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
Jul 22 '06 #5
me

fredg

Thanks a lot.

Jul 22 '06 #6
* fredg:
On 21 Jul 2006 16:37:15 -0700, me wrote:
>BTW, I tried the following (in access) to see what Chr (39) gives but
it gives erroe message.

Private Sub btntest_Click()
Dim strReturn1 As String
strReturn1 = Chr(39)
Form!label1 = strReturn1

Dim strReturn2 As String
strReturn2 = Chr(91)
Form!label2 = strReturn2

End Sub

Is there any way I can test (in Access) to see what Chr(39) gives?

Open the debug window (Ctrl + G)
Type
?chr(39)
the character result will appear beneath it
' (the apostrophe)

If you know the character and want to find it's AscII value, type the
character within double quotes.
?Asc("'")
The value will appear beneath it:
39
See my previous reply to your first post for more information.
Excellent response. Rather than providing only the values, how the OP
can get them for himself. Give a man a fish...

Jul 22 '06 #7
Chr(39) = '
Chr(91) = [
Chr(45) = -
Chr(93) = ]
Chr(42) = *

Hope this solves your problem.

Good luck

Nick

me wrote:
I am working as an intern at a place using Access 2003 code builder.

Looking at the cold of the old project t(hat we are redoing), I see
Chr(39)

Chr(91)

Chr(45)

Chr(93)

Chr(42)
An example is this:

strCriteria = (strCriteria & tableColumnName & " LIKE " & Chr(39) &
Chr(42 & )vSearchValue & Chr(42) & Chr(39)
I have no books or resource to use - have no VBA or VB.net installed in
my PC; Can anyone tells me what each of these functions returns?
Jul 22 '06 #8
.... and he'll smell for a day (?)

--

Terry Kreft
"Randy Harris" <pl****@send.no.spamwrote in message
news:ec********************@newssvr13.news.prodigy .com...
* fredg:
On 21 Jul 2006 16:37:15 -0700, me wrote:
BTW, I tried the following (in access) to see what Chr (39) gives but
it gives erroe message.

Private Sub btntest_Click()
Dim strReturn1 As String
strReturn1 = Chr(39)
Form!label1 = strReturn1

Dim strReturn2 As String
strReturn2 = Chr(91)
Form!label2 = strReturn2

End Sub

Is there any way I can test (in Access) to see what Chr(39) gives?
Open the debug window (Ctrl + G)
Type
?chr(39)
the character result will appear beneath it
' (the apostrophe)

If you know the character and want to find it's AscII value, type the
character within double quotes.
?Asc("'")
The value will appear beneath it:
39
See my previous reply to your first post for more information.

Excellent response. Rather than providing only the values, how the OP
can get them for himself. Give a man a fish...

Jul 22 '06 #9
me

Nick 'The Database Guy' wrote:
Chr(39) = '
Chr(91) = [
Chr(45) = -
Chr(93) = ]
Chr(42) = *

Hope this solves your problem.

Good luck

Nick
Thanks.

I didn't work yesterday and am about to go find out what those
functiosn are returning and decided to check this thread again. Saves
me some time.

>
me wrote:
I am working as an intern at a place using Access 2003 code builder.

Looking at the cold of the old project t(hat we are redoing), I see
Chr(39)

Chr(91)

Chr(45)

Chr(93)

Chr(42)
An example is this:

strCriteria = (strCriteria & tableColumnName & " LIKE " & Chr(39) &
Chr(42 & )vSearchValue & Chr(42) & Chr(39)
I have no books or resource to use - have no VBA or VB.net installed in
my PC; Can anyone tells me what each of these functions returns?
Jul 25 '06 #10

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

Similar topics

3
by: domeceo | last post by:
can anyone tell me why I cannot pass values in a setTimeout function whenever I use this function it says "menu is undefined" after th alert. function imgOff(menu, num) { if (document.images) {...
5
by: phil_gg04 | last post by:
Dear Javascript Experts, Opera seems to have different ideas about the visibility of Javascript functions than other browsers. For example, if I have this code: if (1==2) { function...
2
by: laredotornado | last post by:
Hello, I am looking for a cross-browser way (Firefox 1+, IE 5.5+) to have my Javascript function execute from the BODY's "onload" method, but if there is already an onload method defined, I would...
2
by: sushil | last post by:
+1 #include<stdio.h> +2 #include <stdlib.h> +3 typedef struct +4 { +5 unsigned int PID; +6 unsigned int CID; +7 } T_ID; +8 +9 typedef unsigned int (*T_HANDLER)(void); +10
8
by: Olov Johansson | last post by:
I just found out that JavaScript 1.5 (I tested this with Firefox 1.0.7 and Konqueror 3.5) has support not only for standard function definitions, function expressions (lambdas) and Function...
3
by: Beta What | last post by:
Hello, I have a question about casting a function pointer. Say I want to make a generic module (say some ADT implementation) that requires a function pointer from the 'actual/other modules'...
2
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: ...
28
by: Larax | last post by:
Best explanation of my question will be an example, look below at this simple function: function SetEventHandler(element) { // some operations on element element.onclick = function(event) {
4
by: alex | last post by:
I am so confused with these three concept,who can explained it?thanks so much? e.g. var f= new Function("x", "y", "return x * y"); function f(x,y){ return x*y } var f=function(x,y){
7
by: VK | last post by:
I was getting this effect N times but each time I was in rush to just make it work, and later I coudn't recall anymore what was the original state I was working around. This time I nailed the...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.