InStr() - Help with query

M

mralmackay

Hi,

Is it possible to do the following @ all. I need to query a field
called DiaryEditor within table Extract for the next two words after
any occurence of the following "Updated By: ". I understand that the
InStr() function could be used but not quite sure how this is meant to
be used in this example.

TIA for your help with this.

Al.
 
E

Ed Metcalfe

Hi,

Is it possible to do the following @ all. I need to query a field
called DiaryEditor within table Extract for the next two words after
any occurence of the following "Updated By: ". I understand that the
InStr() function could be used but not quite sure how this is meant to
be used in this example.

TIA for your help with this.

Al.

Assuming there are no other words after "Updated By: " something like this
should work:

Right([Extract].[DiaryEditor],len([Extract].[DiaryEditor])-instr(1,[Extract].[DiaryEditor],"Updated
By: ")-11)

Ed Metcalfe.
 
M

mralmackay

Thanks for your help with this Ed, will try this tomorrow.

Thanks, Al.

Is it possible to do the following @ all. I need to query a field
called DiaryEditor within table Extract for the next two words after
any occurence of the following "Updated By: ". I understand that the
InStr() function could be used but not quite sure how this is meant to
be used in this example.
TIA for your help with this.

Assuming there are no other words after "Updated By: " something like this
should work:

Right([Extract].[DiaryEditor],len([Extract].[DiaryEditor])-instr(1,[Extract­].[DiaryEditor],"Updated
By: ")-11)

Ed Metcalfe.
 

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

Similar Threads


Top