PC Review


Reply
Thread Tools Rate Thread

How do i use left function in Microsoft Access?

 
 
=?Utf-8?B?SmFzb24=?=
Guest
Posts: n/a
 
      15th May 2006
I can't get the left function to work in Microsoft access. I need to separate
out numbers on a chain taking several quiries into three separate instances
to break it up. Can i do this in a table format from the orinal data or a
query, i cant get it to work even though i tried several ways that i found
such as : Left(string,2) or Left([string],2)

Thanks
Jason
 
Reply With Quote
 
 
 
 
=?Utf-8?B?c2NoYXN0ZWVu?=
Guest
Posts: n/a
 
      15th May 2006
in a queary you would do:
Left([YourFieldName],2)


"Jason" wrote:

> I can't get the left function to work in Microsoft access. I need to separate
> out numbers on a chain taking several quiries into three separate instances
> to break it up. Can i do this in a table format from the orinal data or a
> query, i cant get it to work even though i tried several ways that i found
> such as : Left(string,2) or Left([string],2)
>
> Thanks
> Jason

 
Reply With Quote
 
John Vinson
Guest
Posts: n/a
 
      16th May 2006
On Mon, 15 May 2006 12:54:02 -0700, Jason
<(E-Mail Removed)> wrote:

>I can't get the left function to work in Microsoft access. I need to separate
>out numbers on a chain taking several quiries into three separate instances
>to break it up. Can i do this in a table format from the orinal data or a
>query, i cant get it to work even though i tried several ways that i found
>such as : Left(string,2) or Left([string],2)
>
>Thanks
>Jason


Could you give a bit more information? What fieldname in the table are
you trying to substring? What do you mean by "numbers on a chain"?
Could you post an example of the data currently in the table, and the
desired result?

John W. Vinson[MVP]
 
Reply With Quote
 
=?Utf-8?B?SmFzb24=?=
Guest
Posts: n/a
 
      16th May 2006
i put the fuction in the criteria box as. Left([Serial Number], 2) and it
won't work, i've tried serval varients of it too.

Jason


"John Vinson" wrote:

> On Mon, 15 May 2006 12:54:02 -0700, Jason
> <(E-Mail Removed)> wrote:
>
> >I can't get the left function to work in Microsoft access. I need to separate
> >out numbers on a chain taking several quiries into three separate instances
> >to break it up. Can i do this in a table format from the orinal data or a
> >query, i cant get it to work even though i tried several ways that i found
> >such as : Left(string,2) or Left([string],2)
> >
> >Thanks
> >Jason

>
> Could you give a bit more information? What fieldname in the table are
> you trying to substring? What do you mean by "numbers on a chain"?
> Could you post an example of the data currently in the table, and the
> desired result?
>
> John W. Vinson[MVP]
>

 
Reply With Quote
 
=?Utf-8?B?c2NoYXN0ZWVu?=
Guest
Posts: n/a
 
      16th May 2006
Put the expression in an empty field box

"Jason" wrote:

> i put the fuction in the criteria box as. Left([Serial Number], 2) and it
> won't work, i've tried serval varients of it too.
>
> Jason
>
>
> "John Vinson" wrote:
>
> > On Mon, 15 May 2006 12:54:02 -0700, Jason
> > <(E-Mail Removed)> wrote:
> >
> > >I can't get the left function to work in Microsoft access. I need to separate
> > >out numbers on a chain taking several quiries into three separate instances
> > >to break it up. Can i do this in a table format from the orinal data or a
> > >query, i cant get it to work even though i tried several ways that i found
> > >such as : Left(string,2) or Left([string],2)
> > >
> > >Thanks
> > >Jason

> >
> > Could you give a bit more information? What fieldname in the table are
> > you trying to substring? What do you mean by "numbers on a chain"?
> > Could you post an example of the data currently in the table, and the
> > desired result?
> >
> > John W. Vinson[MVP]
> >

 
Reply With Quote
 
=?Utf-8?B?SmFzb24=?=
Guest
Posts: n/a
 
      16th May 2006
If put in a query field name, it says there is a syntax error due to the
comma being there, and won't do anything at all if the comma is removed.

Jason

"schasteen" wrote:

> Put the expression in an empty field box
>
> "Jason" wrote:
>
> > i put the fuction in the criteria box as. Left([Serial Number], 2) and it
> > won't work, i've tried serval varients of it too.
> >
> > Jason
> >
> >
> > "John Vinson" wrote:
> >
> > > On Mon, 15 May 2006 12:54:02 -0700, Jason
> > > <(E-Mail Removed)> wrote:
> > >
> > > >I can't get the left function to work in Microsoft access. I need to separate
> > > >out numbers on a chain taking several quiries into three separate instances
> > > >to break it up. Can i do this in a table format from the orinal data or a
> > > >query, i cant get it to work even though i tried several ways that i found
> > > >such as : Left(string,2) or Left([string],2)
> > > >
> > > >Thanks
> > > >Jason
> > >
> > > Could you give a bit more information? What fieldname in the table are
> > > you trying to substring? What do you mean by "numbers on a chain"?
> > > Could you post an example of the data currently in the table, and the
> > > desired result?
> > >
> > > John W. Vinson[MVP]
> > >

 
Reply With Quote
 
=?Utf-8?B?c2NoYXN0ZWVu?=
Guest
Posts: n/a
 
      16th May 2006
Please post the sql string that you are getting the error from. You can get
the SQL by going to the view menu and selecting SQL view. It is hard for me
to know much else since I can not see your screen so I am left to guess
without any more information.

"Jason" wrote:

> If put in a query field name, it says there is a syntax error due to the
> comma being there, and won't do anything at all if the comma is removed.
>
> Jason
>
> "schasteen" wrote:
>
> > Put the expression in an empty field box
> >
> > "Jason" wrote:
> >
> > > i put the fuction in the criteria box as. Left([Serial Number], 2) and it
> > > won't work, i've tried serval varients of it too.
> > >
> > > Jason
> > >
> > >
> > > "John Vinson" wrote:
> > >
> > > > On Mon, 15 May 2006 12:54:02 -0700, Jason
> > > > <(E-Mail Removed)> wrote:
> > > >
> > > > >I can't get the left function to work in Microsoft access. I need to separate
> > > > >out numbers on a chain taking several quiries into three separate instances
> > > > >to break it up. Can i do this in a table format from the orinal data or a
> > > > >query, i cant get it to work even though i tried several ways that i found
> > > > >such as : Left(string,2) or Left([string],2)
> > > > >
> > > > >Thanks
> > > > >Jason
> > > >
> > > > Could you give a bit more information? What fieldname in the table are
> > > > you trying to substring? What do you mean by "numbers on a chain"?
> > > > Could you post an example of the data currently in the table, and the
> > > > desired result?
> > > >
> > > > John W. Vinson[MVP]
> > > >

 
Reply With Quote
 
John Vinson
Guest
Posts: n/a
 
      16th May 2006
On Tue, 16 May 2006 07:50:02 -0700, Jason
<(E-Mail Removed)> wrote:

>If put in a query field name, it says there is a syntax error due to the
>comma being there, and won't do anything at all if the comma is removed.


What you should have there is:

NewFieldName: Left([fieldname], 2)

Some distinct field name (different from any existing field names) to
the left of the colon;

the word Left followed by a left parenthesis;

the name of the field that you want to extract in square brackets;

a comma;

the number of characters to extract;

A right parenthesis.


John W. Vinson[MVP]
 
Reply With Quote
 
=?Utf-8?B?SmFzb24=?=
Guest
Posts: n/a
 
      16th May 2006
Thanks, i figured out how to use it.

"schasteen" wrote:

> Please post the sql string that you are getting the error from. You can get
> the SQL by going to the view menu and selecting SQL view. It is hard for me
> to know much else since I can not see your screen so I am left to guess
> without any more information.
>
> "Jason" wrote:
>
> > If put in a query field name, it says there is a syntax error due to the
> > comma being there, and won't do anything at all if the comma is removed.
> >
> > Jason
> >
> > "schasteen" wrote:
> >
> > > Put the expression in an empty field box
> > >
> > > "Jason" wrote:
> > >
> > > > i put the fuction in the criteria box as. Left([Serial Number], 2) and it
> > > > won't work, i've tried serval varients of it too.
> > > >
> > > > Jason
> > > >
> > > >
> > > > "John Vinson" wrote:
> > > >
> > > > > On Mon, 15 May 2006 12:54:02 -0700, Jason
> > > > > <(E-Mail Removed)> wrote:
> > > > >
> > > > > >I can't get the left function to work in Microsoft access. I need to separate
> > > > > >out numbers on a chain taking several quiries into three separate instances
> > > > > >to break it up. Can i do this in a table format from the orinal data or a
> > > > > >query, i cant get it to work even though i tried several ways that i found
> > > > > >such as : Left(string,2) or Left([string],2)
> > > > > >
> > > > > >Thanks
> > > > > >Jason
> > > > >
> > > > > Could you give a bit more information? What fieldname in the table are
> > > > > you trying to substring? What do you mean by "numbers on a chain"?
> > > > > Could you post an example of the data currently in the table, and the
> > > > > desired result?
> > > > >
> > > > > John W. Vinson[MVP]
> > > > >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Microsoft.VisualBasic.Left Function Bill McCarthy Microsoft VB .NET 30 29th Apr 2008 12:47 PM
Left function in Access Slimmyy Microsoft Access Queries 2 29th Jan 2008 12:01 AM
Access 97 Left() function rejected =?Utf-8?B?SmltUw==?= Microsoft Access Queries 5 3rd May 2007 09:55 PM
Not able to get =left([name],1) to function in Access 2000 =?Utf-8?B?REZB?= Microsoft Access Database Table Design 1 1st Feb 2005 12:45 PM
Re: Access Text Function - Left String Fredg Microsoft Access Queries 0 4th Sep 2003 10:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:51 PM.