troubleshooting Question

Access Subform Time textbox - send value to Main Form

Avatar of wlwebb
wlwebbFlag for United States of America asked on
Microsoft Access
2 Comments1 Solution575 ViewsLast Modified:
I have a Form with a SubForm.  

The Subform has a Time Selector.  It is comprised of 4 unbound textboxes.  the first 3 textboxes the user clicks a control button that is is functioning as and up or a down to increment by 1

The 4th text box also unbound is where I take the input by the user and combine it to get the time value

That textbox is [tbTime] On subform [frm_DataDetail]

The code which on the textbox of the Subform works is:

=IIf(nz([tbHr],0)=0,"",IIf(nz([tbMin],0)=0,"",IIf(nz([tbAMPM],"")="","",(TimeSerial(IIf([tbAMPM]="AM",[tbHr],[tbHr]+12),[tbMin],0)))))

Now then I want to bring that time from the Subform over to the Main Form into another unbound textbox.

That Main Form's textbox is named [tbTimeInput]

I have keyed the following code which is not working.
=[frm_DataDetail].[Form]![tbTime]

All I Get is the #Name?

I have done the same Control Source formula to get data from a Subform to the Main Form for other numbers but since this is "Time" is there something else I must add?????

That textbox is formatted "Long Time"

That SubForm 4th Textbox is in the Footer if that makes any difference.
ASKER CERTIFIED SOLUTION
IrogSinta

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros