James Coats
asked on
Access Acs Function problem
The code in the Access form was working now it doesn't . When the button "Character" is pressed and you have entered a legitimate character code in the text box such as "42" you should get ( * ) the asterick character.
Now if you enter 42 you get 52 which makes no sense. It was working and now it won't. Can someone take a look at this please. I have been trying for a long time but can't seem to fix it.
AccessDB-Asc.accdb
Now if you enter 42 you get 52 which makes no sense. It was working and now it won't. Can someone take a look at this please. I have been trying for a long time but can't seem to fix it.
AccessDB-Asc.accdb
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I don't see how your code could have worked before since you were using the ASC function which gives you the ASCII value for you character. When you entered 42, the expression ASC("42) just evaluates the 1st character it encounters... in this case, it's really evaluating ASC("4"), and of course the ASCII value of 4 is 52.
On a side note, you seem to have a tendency of closing your questions and accepting an answer even though you haven't received responses to all your questions. Are your follow up questions just rhetorical in nature so that you don't care if you get an answer to them?
:-)
Ron
On a side note, you seem to have a tendency of closing your questions and accepting an answer even though you haven't received responses to all your questions. Are your follow up questions just rhetorical in nature so that you don't care if you get an answer to them?
:-)
Ron
ASKER
IrogSinta,
I must have changed something, saved it and not have been aware of doing that. It did work at one time. I just didn't recognize that the code had changed.
The follow up questions are important to me. I won't learn if I don't understand. I will wait in the future till I get the answer to my questions.
Sam
I must have changed something, saved it and not have been aware of doing that. It did work at one time. I just didn't recognize that the code had changed.
The follow up questions are important to me. I won't learn if I don't understand. I will wait in the future till I get the answer to my questions.
Sam
ASKER
Thank you for answering so quickly. Don't you ever take time off?
I don't understand why my code quit working. What is wrong with it?
I understand the "Chr(input)" but what is the "CInt" ? I have not seen this before as you used it here "CInt(txt.Input.Value)
Thank you very much!