PC Review


Reply
Thread Tools Rate Thread

Adding a calculation field?

 
 
=?Utf-8?B?RGFubmkyMDA0?=
Guest
Posts: n/a
 
      3rd Apr 2007
I am new to Access and need assistance creating a field that can pull the
first three text digits of another field. I've tried to do this in the table
and in a query without success. I found the "left" expression in the
expression builder but haven't been able to make it work for me.
For example, the record has a field the says "PTO35712" and I just need the
"PTO" part.
Can anyone help please?

Thanks in advance!
 
Reply With Quote
 
 
 
 
Jeff Boyce
Guest
Posts: n/a
 
      3rd Apr 2007
Create a new query. Add the table. Add the field (this is just to "prove"
it's working). Run it.

Add a new field, something like:

NewField: Left([YourFieldName],3)

Run it again.

--
Regards

Jeff Boyce
Microsoft Office/Access MVP
http://mvp.support.microsoft.com/

Microsoft IT Academy Program Mentor
http://microsoftitacademy.com/

Microsoft Registered Partner
https://partner.microsoft.com/


"Danni2004" <(E-Mail Removed)> wrote in message
news:C48D5FA9-F996-4804-A2DA-(E-Mail Removed)...
> I am new to Access and need assistance creating a field that can pull the
> first three text digits of another field. I've tried to do this in the

table
> and in a query without success. I found the "left" expression in the
> expression builder but haven't been able to make it work for me.
> For example, the record has a field the says "PTO35712" and I just need

the
> "PTO" part.
> Can anyone help please?
>
> Thanks in advance!


 
Reply With Quote
 
=?Utf-8?B?RGFubmkyMDA0?=
Guest
Posts: n/a
 
      3rd Apr 2007
Thanks.
Is there a way to add this "Left" calculation to a column in the table?

"Jeff Boyce" wrote:

> Create a new query. Add the table. Add the field (this is just to "prove"
> it's working). Run it.
>
> Add a new field, something like:
>
> NewField: Left([YourFieldName],3)
>
> Run it again.
>
> --
> Regards
>
> Jeff Boyce
> Microsoft Office/Access MVP
> http://mvp.support.microsoft.com/
>
> Microsoft IT Academy Program Mentor
> http://microsoftitacademy.com/
>
> Microsoft Registered Partner
> https://partner.microsoft.com/
>
>
> "Danni2004" <(E-Mail Removed)> wrote in message
> news:C48D5FA9-F996-4804-A2DA-(E-Mail Removed)...
> > I am new to Access and need assistance creating a field that can pull the
> > first three text digits of another field. I've tried to do this in the

> table
> > and in a query without success. I found the "left" expression in the
> > expression builder but haven't been able to make it work for me.
> > For example, the record has a field the says "PTO35712" and I just need

> the
> > "PTO" part.
> > Can anyone help please?
> >
> > Thanks in advance!

>
>

 
Reply With Quote
 
Jeff Boyce
Guest
Posts: n/a
 
      4th Apr 2007
No. Tables store data. Queries find it (and do calculations). Forms
display it (and do calculations). Reports display it for printing (and do
calculations).

If you were working with a heavy-duty back-end (data) tool, it might include
a way to do calculations in the tables ... but there are some really good
reasons why having calculated values in tables is not a good idea.

--
Regards

Jeff Boyce
Microsoft Office/Access MVP
http://mvp.support.microsoft.com/

Microsoft IT Academy Program Mentor
http://microsoftitacademy.com/

Microsoft Registered Partner
https://partner.microsoft.com/

"Danni2004" <(E-Mail Removed)> wrote in message
news:FB8C20D3-2FBA-424B-85D9-(E-Mail Removed)...
> Thanks.
> Is there a way to add this "Left" calculation to a column in the table?
>
> "Jeff Boyce" wrote:
>
> > Create a new query. Add the table. Add the field (this is just to

"prove"
> > it's working). Run it.
> >
> > Add a new field, something like:
> >
> > NewField: Left([YourFieldName],3)
> >
> > Run it again.
> >
> > --
> > Regards
> >
> > Jeff Boyce
> > Microsoft Office/Access MVP
> > http://mvp.support.microsoft.com/
> >
> > Microsoft IT Academy Program Mentor
> > http://microsoftitacademy.com/
> >
> > Microsoft Registered Partner
> > https://partner.microsoft.com/
> >
> >
> > "Danni2004" <(E-Mail Removed)> wrote in message
> > news:C48D5FA9-F996-4804-A2DA-(E-Mail Removed)...
> > > I am new to Access and need assistance creating a field that can pull

the
> > > first three text digits of another field. I've tried to do this in the

> > table
> > > and in a query without success. I found the "left" expression in the
> > > expression builder but haven't been able to make it work for me.
> > > For example, the record has a field the says "PTO35712" and I just

need
> > the
> > > "PTO" part.
> > > Can anyone help please?
> > >
> > > Thanks in advance!

> >
> >


 
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
Total Query: Adding a field to a calculation. Flopbot Microsoft Access Queries 3 4th Sep 2009 08:48 PM
Adding a calculation field to form tdc01slm Microsoft Access Reports 1 11th Aug 2006 05:13 PM
Adding Calculation Field to Form tskb@sbcglobal.net Microsoft Access Forms 1 11th Aug 2006 04:55 PM
Adding a calculation to a field Van T. Dinh Microsoft Access 3 16th Jul 2005 02:56 PM
How To Convert Number Field To Time Field For Calculation? =?Utf-8?B?U2Vpa3lv?= Microsoft Access VBA Modules 12 25th Jan 2005 12:55 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:27 AM.