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

Take the last letter off contents of form combo box

I have a combo box on a form that contains some text of the type "Warning
Letter 3" (this is the bound field). I want to take the last character from
the contents of this combo box and place it in another text box that is
bound to another field - in this case, I would want the number 3 to go into
a different text box on the form, called WarningNumber.

Can someone help me with the context of the VBA code I need to do this?

dixie

Nov 13 '05 #1
2 1505
Me!WarningNumber = Right(Me!NameOfCombobox,1)

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com
"dixie" <di****@dogmail.com> wrote in message
news:5t***************@nnrp1.ozemail.com.au...
I have a combo box on a form that contains some text of the type "Warning
Letter 3" (this is the bound field). I want to take the last character from
the contents of this combo box and place it in another text box that is
bound to another field - in this case, I would want the number 3 to go into
a different text box on the form, called WarningNumber.

Can someone help me with the context of the VBA code I need to do this?

dixie

Nov 13 '05 #2
On Sat, 24 Jul 2004 09:03:36 +1000, "dixie" <di****@dogmail.com> wrote:
I have a combo box on a form that contains some text of the type "Warning
Letter 3" (this is the bound field). I want to take the last character from
the contents of this combo box and place it in another text box that is
bound to another field - in this case, I would want the number 3 to go into
a different text box on the form, called WarningNumber.

Can someone help me with the context of the VBA code I need to do this?

dixie


On the AfterUpdate event of the combo -

If Not IsNull(Me.MyCombo) Then
Me.WarningNumber = Right(Me.MyCombo,1)
End If
Wayne Gillespie
Gosford NSW Australia
Nov 13 '05 #3

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

Similar topics

2
by: Bayou BoB | last post by:
Hi! Currently my combo box contents are not in alphabetical order, and I'm wondering if there is a way to make the contents appear in alphabetical order when you open the combo box. How would...
2
by: Jeff Barry | last post by:
Hi, I wonder if any one can help, I'm pretty new to Access and I can't figure out how to change the contents of a combo box based on a selection I make in another. Let me explain I have a...
5
by: SalimShahzad | last post by:
dear gurus, can any one help me to how to store progrmatically last value in combo box. say i load access form. but in combo box the last value how it will come any ideas...as i need only...
13
by: MLH | last post by:
I have a textbox control used to enter a single alphanumeric character. It changes the case of "i" to upper case. But it does not do so with the letter "g". Its left as "g" - not changed to "G"? ...
2
by: A. Chiou | last post by:
Hi: I have a combobox (in form 1) whose items are populated from a table. In form 2 there is a data entry for the same table. How do I reflect the changes to the combobox in form 1 as soon as...
4
by: lesperancer | last post by:
I've got a comboBox with 2 choices and based on the choice, I make button A or button B visible if choose choice 1, button A is visible now, I undo the choice so that the comboBox is null, but...
1
by: Karthiga1984 | last post by:
Hi Table Structure company name Phone No Products Example Company Name Phone No Products
2
by: rockdc1981 | last post by:
i have a form and subform... i have combo box on main form that has combo box to filter a record to be shown on subform... the case now is , is it possible the on load or after select a record...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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.