473,398 Members | 2,212 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,398 software developers and data experts.

How can I add the next consecutive letter?

Hello,

I have a database that tracks revisions. A new record gets assigned letter "A" but if you want to make changes to the same record, that would be a new revision so you need to write the letter "B".

I want the revision letter to be automaticaly assigned after I ask the user if they want to create a new revision. I created a true/false select case box or statement.

My problem is that I do not know how to add the next consecutive letter to my textbox. I am new at this, but I tried doing the following where "revision" is the name of my textbox:

me.revision= me.revision+1
---------
me.revision= chr$(revision)+1
------
me.revision=asc(revision)+1

Clearly, none of the 3 ways I wrote this worked. They just look wrong.

Can anyone help me?

Thanks!
Jul 23 '10 #1

✓ answered by OldBirdman

Expand|Select|Wrap|Line Numbers
  1. Me.revision = Chr(Asc(revision) + 1))

3 4398
OldBirdman
675 512MB
Expand|Select|Wrap|Line Numbers
  1. Me.revision = Chr(Asc(revision) + 1))
Jul 23 '10 #2
NeoPa
32,556 Expert Mod 16PB
I assume you have a routine where you'd put this, but essentially the command is pretty much as OB has it :
Expand|Select|Wrap|Line Numbers
  1. Me.Revision = Chr(Asc(Me.Revision) + 1))
Jul 23 '10 #3
OldBirdman thanks a lot! It worked. I was so close, but not really lol,

thanks!
Jul 23 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Jim Vorbau | last post by:
I would like to change the colors on consecutive letters of a word. When adding a style associated with the span tag (see below), there is a gap after each letter. Does anyone know why the span tag...
10
by: Walter Brunswick | last post by:
Is there any way to iterate through a sequence of characters to find N consecutive equivalent characters? So, for example, the string "taaypiqee88adbbba" would return 1 if the number (of...
7
by: Micheal Artindale | last post by:
I am looking at creating list of letter combinations. letters a-h 6 letters per combination letter can repeat its self in the combination, but not next to its self and, a series of letter can...
3
by: jr | last post by:
A perplexing one this. I Am trying to design a query or series of queries which will firstly identify a condition. If column A value is less than column B value make column C value =1 , else...
5
by: robecflo | last post by:
Hi Forum, i have a problem, hope somebody can give me ideas. I'm developing with windows forms and vb.net, and oracle as a database. At this moment i have a table called amortizaciones, this table...
0
by: Ryan Liu | last post by:
In a listview, I found it is pretty nice I can type a letter or more letter quickly to select the NEXT item which begin with that letter(s). But seems the first row, even not high lighted, always...
10
by: QQ | last post by:
for instance, I read a char from the input and I need to decide whether it is a letter or a number What I am doing is char a; ...... // read a int true = false; if(( (a >='0') && (a <='9')) | |...
20
by: Jukka K. Korpela | last post by:
I recently noticed, once again, how the common implementation of italics can really disturb. I'm referring to the common phenomenon that there is by default too little spacing after italics text,...
6
by: ahlongxp | last post by:
list=('a','d','c','d') for a in list: if a=='a' : #skip the letter affer 'a' what am I supposed to do?
6
by: davidcollins001 | last post by:
Hi, I came across a neat problem that I have been trying to code to improve my programming problem solving skills. It is quite simple but I am struggling to get my head around it. Any help would...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.