Command Button

G

Guest

How to program a command button to open a file with pictures in it?
Specific to each entry?
 
P

Pat Garard

Which Enty?
--
Regards,
Pat Garard
Australia

Anne & Pat Garard.
apgarardATbigpondDOTnetDOTau
_______________________________________________
 
G

Guest

I need to make each specific entry in forms with a command button so that when the user clicks it
the button opens a file in the computer with pics specific to that entry in forms
 
P

Pat Garard

G'Day Again Elizabeth,
Now you have a concept in YOUR head, that I
cannot see!
So Far I think that you have Forms, each with
a Command Button?
When the Command Button is clicked, a file
should be opened?
The File is specific to something?
How is this 'File' displayed, and for what?

Now! What is the Goal?
Can you give me a specific example?

If you can help me THINK, I'll do my damnedest
to help you do it!!

And if I can't, someone else out here will be clear
about what you are trying to do! They will know
more than me, and, if they are clear about what you
are trying to do, the will be PLEASED to help!
---
Regards,
Pat Garard
Australia

Anne & Pat Garard.
apgarardATbigpondDOTnetDOTau
_______________________________________________
 
A

Arvin Meyer

Elizabeth said:
I need to make each specific entry in forms with a command button so that when the user clicks it
the button opens a file in the computer with pics specific to that entry
in forms

Assuming you'll be storing the file name in the database, you'd use the
picture property of an image control: (aircode)

Sub cmdMyButton_Click(Cancel As Integer)

Me.imgControl1.Picture = Me.txtFileName

End Sub

It is just that simple. For a slightly more sophisticated example, have a
look at the PictureMgr sample database on my website:

http://www.datastrat.com/Download/Picture2K.zip
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads:
http://www.datastrat.com
http://www.mvps.org/access
 
J

Jim/Chris

If the Picture files are stored on the computer make sure
that on every computer the application that opens the
picutres and picture files are stored in the same directories.

Action RunApp
Command line FullAppname&Loc "fullFilename&Loc"

Jim
 

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