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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pass Value form to form

Status
Not open for further replies.

lashwarj

IS-IT--Management
Joined
Nov 1, 2000
Messages
1,067
Location
US
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.
 
Try something like this.
In the form with the thumbnail view, the image object's DblClick event, put the code:

DO FORM Form1 WITH THIS.Picture

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

PARAMETERS cPicture
THISFORM.cZoomPic = cPicture

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

Dave S.
 
How do you create a form property
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top