Strings

K

**KP**

I posted this earlier and may have posted in wrong group.

Hi,

I have a table with text data in Field1. In some cases
Field1 contains the value "VENDOR NUM". I want to use an
Access DB Module Function and search for the record(s)
with "VENDOR NUM" in it. Once I find the record, I'll use
the Left() and Right() Function to extract a certain # of
characters from Table2!Field2 and place elsewhere in
Table2. I'm using the following but can't get it to work
for nothing:

If Table1!Field1 Like "*VENDOR*" Then

I'd really appreciate any help you could give me on this
issue. Thanks in advance.
 
K

**KP**

One other question. Isn't there a function for starting in
a particular position within a string and returning a
specified # of characters? For example: ReturnDesc = str
(field, startposn, #chars to retrieve). I've seen it
before but can't find in in my Access resources. TIA
 
D

Dirk Goldgar

**KP** said:
One other question. Isn't there a function for starting in
a particular position within a string and returning a
specified # of characters? For example: ReturnDesc = str
(field, startposn, #chars to retrieve). I've seen it
before but can't find in in my Access resources. TIA

That's the Mid() function. You'll find it in the VBA online help.
Unfortunately, that's only available when you're working in the VB
editor.
 

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

Top