Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 110
  • Last Modified:

Display image on continuous form for one record only

Dear Experts,

This is a continuation from this question: https://www.experts-exchange.com/questions/28963272/Show-Hide-image-if-current-day-month-equals-birthday.html

But I thought I would start a new question.

So the function to display the image works great but for 'EVERY' student listed on my continuous form. Rather I need the image to display for only the student on the continuous form whose birthday is 'today'. The student key is 'studentID' on the form. 'studentDOB' holds the student birthdate and Me!imgCake is the pic object.

Thanks!
0
shogun5
Asked:
shogun5
4 Solutions
 
Jim Dettman (Microsoft MVP/ EE MVE)PresidentCommented:
The problem with the continuous form is that unless the  Control is bound ( has its control source set to a field in the underline record source of the form)  all records will display the same thing.

So you have two basic choices:

1. Make the image control part of the main form  and set it  when you click on a record in the subform.

2.   Make it part of the forms underlying record source.  You can put the image and a table by itself do a joint to your table that you have now in the form and then have the graphic available for each record if it's needed.

Jim
0
 
Jim Dettman (Microsoft MVP/ EE MVE)PresidentCommented:
FYI. Last response was done by phone and it got a couple of words mixed up but I think you can get the jist of what I was saying.

Jim
0
 
shogun5Author Commented:
Jim,

Could I create a boolean field in the student table that checks the current date with the birthday field and return either a true or false value and then set that field on the visible property on the image in the form?
0
Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

 
hnasrCommented:
One way, that I am aware of, is to have the image in the Form header, and highlight the records with the same birth day.
0
 
Gustav BrockCIOCommented:
An old trick is to create a tiny subform only holding one record (the same as the parent record) and the picture.
Then control the visibility with the IsBirthday function.

/gustav
0
 
als315Commented:
Look at sample based on my article Images on continuous forms. Field with birthday was added to table and condition to field [Image]. Switch "Show only birthdays" allow you to show all or only students with birthday today
ImagesTest.zip
0
 
shogun5Author Commented:
Thanks all! Great ideas and am I sure one will work. Cheers!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now