dbTalk Databases Forums  

NOT FIRST OR LAST

comp.databases.ms-access comp.databases.ms-access


Discuss NOT FIRST OR LAST in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Peter D
 
Posts: n/a

Default NOT FIRST OR LAST - 12-18-2004 , 07:36 AM






In ACCESS 97 : in a txtbox i have *(whateverdata)*
I would like to show on screen (whateverdata), so whithout the 2 *

for the first one i used mid(txtboxname,2)
for the last one i used right(txtboxname,1)

but mid(txtboxname,2) - right(txtboxname,1) doesn't work!! how come?


TX anyone

Reply With Quote
  #2  
Old   
Rick Brandt
 
Posts: n/a

Default Re: NOT FIRST OR LAST - 12-18-2004 , 07:43 AM






"Peter D" <dauwe.peter (AT) pandora (DOT) be> wrote

Quote:
In ACCESS 97 : in a txtbox i have *(whateverdata)*
I would like to show on screen (whateverdata), so whithout the 2 *

for the first one i used mid(txtboxname,2)
for the last one i used right(txtboxname,1)

but mid(txtboxname,2) - right(txtboxname,1) doesn't work!! how come?
Mid() and Right return strings. What you have there translates to...

(whateverdata) - *

What you want is...

=Mid(txtboxname,2, Len(txtboxname)-2)

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.