Solved

Display image on continuous form for one record only

Posted on 2016-08-14
7
47 Views
Last Modified: 2016-08-15
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
Comment
Question by:shogun5
7 Comments
 
LVL 57
ID: 41755730
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
 
LVL 57

Assisted Solution

by:Jim Dettman (Microsoft MVP/ EE MVE)
Jim Dettman (Microsoft MVP/ EE MVE) earned 83 total points
ID: 41755732
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
 

Author Comment

by:shogun5
ID: 41755773
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
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 30

Assisted Solution

by:hnasr
hnasr earned 83 total points
ID: 41755814
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
 
LVL 49

Accepted Solution

by:
Gustav Brock earned 251 total points
ID: 41755956
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
 
LVL 39

Assisted Solution

by:als315
als315 earned 83 total points
ID: 41755957
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
 

Author Closing Comment

by:shogun5
ID: 41756473
Thanks all! Great ideas and am I sure one will work. Cheers!
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now