Entering a Formula

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have no experience w/ Access.

I need to enter this formula into a new field but do not know how. Could
someone walk me through it.

Mid(yourfield,5,2)

Thank you in advance.
 
carl said:
I have no experience w/ Access.

I need to enter this formula into a new field but do not know how.
Could someone walk me through it.

Mid(yourfield,5,2)

Thank you in advance.

Assuming you want to do this in a table, you would begin by making the
filed in the table description then use your formula in an update query to
place the results in the table.

The problem with that is you should not normally store the results of a
calculation in a table. You are usually better off just using a simple
query to make a temporary field each time you need the result. Stored
results may slow down Access and most importantly they don't change if you
change the data from which they were originally computed.
 
Thank you. How do I set-up a simple query to create the temporary field ?
 
carl said:
Thank you. How do I set-up a simple query to create the temporary
field ?

Create a "Select" query. Base it on the table in question. Chose the *
to put all the fields into the query. Go to the first empty filed and type
in:

NEWNAME: Mid(yourfield,5,2)

When you run the query or use it as a source for a report, form or other
queries, it will appear as if there is a filed called NEWNAME in the table.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top