can't display same field in a subform

J

jackinoz

Help

In a very simple form within a small database, I want to display a field "ServiceChargeStart" from main form "ApplicantDetails" on a subform "ElectricitySafetyChecks" in a field called "DateLastElecCheck

I think I should be able to do this by using " =[ApplicantDetails]![ServiceChargeStart] " in the control source of "DateLastElecCheck", but this doesn't seem to work. Ihave tried various similar variations

Any Suggestions?

Yours hopefully

Jackinoz
 
W

Wayne Morgan

Try
=[Parent]![ServiceChargeStart]

I tried this and it worked; however, it didn't appear to auto-update. To
take care of this you will need to place

Me.NameOfSubformControl.Form.Recalc

in the main form's Current event and the main form control's AfterUpdate
event.

--
Wayne Morgan
Microsoft Access MVP


jackinoz said:
Help!

In a very simple form within a small database, I want to display a field
"ServiceChargeStart" from main form "ApplicantDetails" on a subform
"ElectricitySafetyChecks" in a field called "DateLastElecCheck"
I think I should be able to do this by using "
=[ApplicantDetails]![ServiceChargeStart] " in the control source of
"DateLastElecCheck", but this doesn't seem to work. Ihave tried various
similar variations.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top