Formula in Query

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

Guest

I'm trying to create a new column that includes everything from the right of
the * in the following number, what function/formula will do that for me?
Thanks.

1*1003
12*455556
 
Check Access HELP for the syntax you'll use with the Mid() function and the
Instr() function.

Regards

Jeff Boyce
Microsoft Office/Access MVP
 
I'm trying to create a new column that includes everything from the right of
the * in the following number, what function/formula will do that for me?
Thanks.

1*1003
12*455556

Well, this is obviously a Text field, not a number, since numbers
can't contain nonnumeric characters. Try

Mid([fieldname], InStr([fieldname], "*") + 1)

This will pop an error if the field does not contain an asterisk - let
us know if you need a getaround for that possibility.

John W. Vinson[MVP]
 

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