
Signature
Greetings from Bavaria, Germany
Helmut Weber, MVP WordVBA
Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"
Well Helmut, thanks. I would however like if the fieldname is >=25, take the
first 25 characters, non' too long' but save any way. if it is difficult I
entirely take the name of the field. in the same Private Sub
CommandButton1_Click () would like to insert an condition which always checks
if "c:\test\" there is already, otherwise create it. is it possible? Thanks
many. Greetings from, Tuscan, Italy. Ciao Fedora
> Hi Fedora,
>
[quoted text clipped - 14 lines]
> assuming, you have a commandbutton from
> the control toolbox, or whatever it is called in French, I guess.
Helmut Weber - 08 Nov 2005 09:54 GMT
Hi Fedora,
if you want the left 25 characters, then
sName= left(sNam, 25)
This works even if there are less then 25 characters.
To check, whether a directory exists, etc.
If Dir("c:\testdir\", vbDirectory) = "" Then
MkDir "c:\testdir\"
End If

Signature
HTH
Helmut Weber, MVP WordVBA
"red.sys" & chr$(64) & "t-online.de"
Win XP, Office 2003
fedora - 08 Nov 2005 14:29 GMT
hi helmut, really professional, punctual and effective. Everything works to
wonder. thanks, many thanks. you are good.
Fedora.