Hello...
I have the following code that prompts a user to enter some data (typically something like: 11-22201 and a message will appear: RS1122201-01.jpg. I think the code is pretty much self explanatory... I have two separate fields one that that holds numbers like 11-22201 (different per each record) and another that I would like the RS1122201-01.jpg to be displayed in.
I have about 2000 records. Is there a way to manupilate this code to my advantage, so that it will do it for the entire table in seconds?
Thanks in advance.
I have the following code that prompts a user to enter some data (typically something like: 11-22201 and a message will appear: RS1122201-01.jpg. I think the code is pretty much self explanatory... I have two separate fields one that that holds numbers like 11-22201 (different per each record) and another that I would like the RS1122201-01.jpg to be displayed in.
I have about 2000 records. Is there a way to manupilate this code to my advantage, so that it will do it for the entire table in seconds?
Thanks in advance.
Code:
Private Sub what()
Dim st$
Dim begin$
Dim endp$
st$ = InputBox("enter text")
st$ = Replace(st$, "-", "", 1, 1)
begin$ = "P:\RS"
last$ = "-01.JPG"
Endphrase$ = Mid(st$, 1)
st$ = begin$ & Endphrase$ & endp$
MsgBox st$
End Sub