Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Pass Value form to form

Pass Value form to form

Pass Value form to form

I have a command button that has the text do form form1
I need to know the code to open form one with the same photo as the current form.

What I have is a memo field that holds a path for a image. ON Form1 I have the picture =fire.photo which currently gives me all th ephotos, I need to filter it so it only opens the one.

I am using a SQL Database and was told to make the picture field a memo field and to store the value in the memo field instead of storing the photo. So OLEBOUND Controls will not work for the task I want. I simply want to be able to take a thumbnail and view the full image which I know can be ackoimplished by double clicking a ole countrol but since my data a stored path I can not do this, any suggestions.

P.S. I looked at the CrownBase code but it didnt help I coudnt find the correct form then the code used you have it setup in classes that refrence to many times.

RE: Pass Value form to form

Try something like this.
In the form with the thumbnail view, the image object's DblClick event, put the code:


In Form1, create a form property called cZoomPic.  In the Init event, put this code:

THISFORM.cZoomPic = cPicture

In Form1's Activate event:
THISFORM.Image1.Picture = THISFORM.cZoomPic

Dave S.

RE: Pass Value form to form

How do you create a form property

RE: Pass Value form to form

Open your form, and from the menu bar select:

Form->New Property

A dialog will come up and you can enter the property name there.  

Dave S.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close