?
Solved

Display image on continuous form for one record only

Posted on 2016-08-14
7
Medium Priority
?
91 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 58
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 58

Assisted Solution

by:Jim Dettman (Microsoft MVP/ EE MVE)
Jim Dettman (Microsoft MVP/ EE MVE) earned 332 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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
LVL 30

Assisted Solution

by:hnasr
hnasr earned 332 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 51

Accepted Solution

by:
Gustav Brock earned 1004 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 40

Assisted Solution

by:als315
als315 earned 332 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Code that checks the QuickBooks schema table for non-updateable fields and then disables those controls on a form so users don't try to update them.
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Suggested Courses

765 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