A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Left function



 
 
Thread Tools Display Modes
  #1  
Old November 19th, 2009, 09:08 PM posted to microsoft.public.access.tablesdbdesign
Cheri Luoma
external usenet poster
 
Posts: 2
Default Left function

I am using Access 2007 and am new at this. I am trying to take a text field, a GL account number so it is numbers but exported as a text field into Access, and only show the first 6 digits on the left. I am using the formula Left([GL Account],6) and that formula is returning nothing. The same formula returns values if I am using it on a numeric field. Can anyone tell me what I am doing wrong. It seems so simple but it just is not working for me and I know if has to be related to the text field somehow.



EggHeadCafe - Software Developer Portal of Choice
XMLHelper Redux and IE WebBrowser in .NET
http://www.eggheadcafe.com/tutorials...and-ie-we.aspx
  #2  
Old November 19th, 2009, 10:16 PM posted to microsoft.public.access.tablesdbdesign
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Left function

Is it a 'Lookup' field by chance?
Post the SQL of your query and sample data.
--
Build a little, test a little.


"Cheri Luoma" wrote:

I am using Access 2007 and am new at this. I am trying to take a text field, a GL account number so it is numbers but exported as a text field into Access, and only show the first 6 digits on the left. I am using the formula Left([GL Account],6) and that formula is returning nothing. The same formula returns values if I am using it on a numeric field. Can anyone tell me what I am doing wrong. It seems so simple but it just is not working for me and I know if has to be related to the text field somehow.



EggHeadCafe - Software Developer Portal of Choice
XMLHelper Redux and IE WebBrowser in .NET
http://www.eggheadcafe.com/tutorials...and-ie-we.aspx
.

  #3  
Old November 19th, 2009, 10:22 PM posted to microsoft.public.access.tablesdbdesign
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default Left function

I can't tell from your description where you are trying to do this...

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or pseudocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.

Cheri Luoma wrote in message ...
I am using Access 2007 and am new at this. I am trying to take a text
field, a GL account number so it is numbers but exported as a text field
into Access, and only show the first 6 digits on the left. I am using the
formula Left([GL Account],6) and that formula is returning nothing. The
same formula returns values if I am using it on a numeric field. Can
anyone tell me what I am doing wrong. It seems so simple but it just is
not working for me and I know if has to be related to the text field
somehow.



EggHeadCafe - Software Developer Portal of Choice
XMLHelper Redux and IE WebBrowser in .NET
http://www.eggheadcafe.com/tutorials...and-ie-we.aspx



  #4  
Old November 19th, 2009, 10:37 PM posted to microsoft.public.access.tablesdbdesign
Fred
external usenet poster
 
Posts: 1,451
Default Left function

Is it possible that you have lots of leading blank spaces in the text field
and are returning those?
  #5  
Old November 23rd, 2009, 11:14 AM posted to microsoft.public.access.tablesdbdesign
Terje M
external usenet poster
 
Posts: 1
Default Left function

Try $Left([GL Account],6) instead of just Left([GL Account],6)
Since its a alphanumeric field this should work better.

Terje M

"Cheri Luoma" wrote:

I am using Access 2007 and am new at this. I am trying to take a text field, a GL account number so it is numbers but exported as a text field into Access, and only show the first 6 digits on the left. I am using the formula Left([GL Account],6) and that formula is returning nothing. The same formula returns values if I am using it on a numeric field. Can anyone tell me what I am doing wrong. It seems so simple but it just is not working for me and I know if has to be related to the text field somehow.



EggHeadCafe - Software Developer Portal of Choice
XMLHelper Redux and IE WebBrowser in .NET
http://www.eggheadcafe.com/tutorials...and-ie-we.aspx
.

 




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 Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:49 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.