rename image file by a fields in a form (1 Viewer)

eshai

Registered User.
Local time
Today, 19:38
Joined
Jul 14, 2015
Messages
193
i build a register form for a new students is a part of a big db
now i made a popup forms asking for the student to fill up is details
id,firstname,etc'
and the important detail is an image
the popup forms work by 2 ways one menuly. I put in the details take an image of him and atech it. all the details go to a nice page that Printed and the student go for a interview. the second way is all automatic when the image is taking by "sendkeys method"
what i need is that image well rename to a name from the fields.firstname,lastname,city With a space between them
then copy the image file from c:/img to c:/pictures the file is .gif
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 00:38
Joined
May 7, 2009
Messages
19,237
you just use FileCopy "c:\img\defaultPictName. ext", "c:\pictures\" & [firstname] & " " & [lastname] & " " & [city] & ". ext"
 

eshai

Registered User.
Local time
Today, 19:38
Joined
Jul 14, 2015
Messages
193
you just use FileCopy "c:\img\defaultPictName. ext", "c:\pictures" & [firstname] & " " & [lastname] & " " & [city] & ". ext"

thank you so match
work great. my head was stuck on "name procedur" "old","new"
 

Users who are viewing this thread

Top Bottom