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

LTrim?

AccessIdiot
493 256MB
One more question for today, lol.

I have an unbound textbox (txt_SureyNum) that allows users to type in a number. The field next to this number (Survey_Num) concatenates the number with some text. E.g. user types in "6" and the box next to it becomes "TR6". This Survey_Num actually gets entered into the table.

Now when cycling back and forth through records the unbound textbox will always contain what was last typed in, e.g. it will always be 6 even though when the record was created it was originally 4.

This could really screw things up. :(

So I am trying to figure out how to get the unbound textbox to display what was originally typed in for that record when the user scrolls through existing records. I thought it would be easiest to take the concatenated field (Survey_Num) and un-concatenate it so to speak. That is, trim off the left two letters and leave the number.

But I can't find the function! I can't use just Right() because the number of digits I need will change (e.g. TR3 vs TR13). And LTrim only trims a string, not the number of characters to be removed. Unless I'm missing something? Is there another function to look at?

Or a better way to do this all together?
Apr 27 '07 #1
2 2015
Rabbit
12,516 Expert Mod 8TB
Mid(String, Start Position, [Optional] Length)
Apr 27 '07 #2
AccessIdiot
493 256MB
Mid!

Brilliant!

:D
Apr 27 '07 #3

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

Similar topics

3
by: Shailesh Humbad | last post by:
I compiled this article on trim functions for Javascript: Javascript Trim LTrim and RTrim Functions http://www.somacon.com/p355.php If you have any comments, please let me know. Thanks,...
7
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I trim whitespace - LTRIM/RTRIM/TRIM?...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: 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
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
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.