Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to insert photos using command buttons . . . 1

Status
Not open for further replies.

OverDrive

IS-IT--Management
Dec 11, 2000
268
US
Jus' wonderin if any of you guru's out there knew how to create command buttons to insert and delete photos in a control on a form? INTENT: My intent on this was to allow the client to install a recent photo of there employees and also have the option to delete or re-insert an updated photo. Is this possible, and if so, please clue me in . . .

OD~

chance@iland.net
Work Group Manager / Small computer Specialist
United States Air Force
 
One thing I have done with great sucesss is Load a picture.

see my FAQ:
faq181-279


DougP, MCP
dposton@universal1.com

Ask me how Bar-codes can help you be more productive.
 
But will this allow me to use a command button to be able to change the picture or will I have to keep getting into design view and changing the picture every time I want to update a picture. My whole point was to have the user have a nice simple button click to change a picture if he had one he needed to upload or one he needed to change.

any sugg.
OD~
 
based upon Doug's (well written!) FAQ I just did...

Code:
Private Sub Command0_Click()
    If Me.Image1.Picture = "C:\WINDOWS\DESKTOP\ccf\Database\Image87.gif" Then
        Me.Image1.Picture = "C:\WINDOWS\DESKTOP\ccf\Database\Image88.gif"
    Else
        Me.Image1.Picture = "C:\WINDOWS\DESKTOP\ccf\Database\Image87.gif"
    End If
End Sub

Works well! there is a the breif "Loading..." window that pops up too quickly to be a real annoyance.

so it does what you're looking for.

GIFs were gotten from my
 
hi,

If i want to load the bitmap image and show on the form.mde.
Later, i have to store the bitmap in my form.mdb.
Is that possible?

regards,
icy111
 
I'm trying my best to place employee photos in my form. I've tried following the steps given but, I just can't seem to get it. Is there someone or someplace I can get step by step instructions? As you can tell I'm not a pro.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top