Help with a call to a subform textbox

  • Thread starter Thread starter hoffmantime
  • Start date Start date
H

hoffmantime

From the parent form(f_CofC), need to get the value of a
textbox(qty1) in the subform (Sub_data) and check to see
if there is a value in the text box. I was trying to use
the following command, but I kept getting something
similar to "the field (sub_data)could not be found"
Sub_data is my subform.
Here is the code I am trying.
If Forms!f_cofc![sub_data].qty1.Text > 0 Then

Any help?

Thanks,
 
Hi Hoffmantime,

If Forms!f_cofc!sub_data!qty1 > 0 Then

Make sure *sub_data* is the name of the subform control on the mainform

HTH
Steve C
 
-----Original Message-----
Hi Hoffmantime,

If Forms!f_cofc!sub_data!qty1 > 0 Then

Make sure *sub_data* is the name of the subform control on the mainform

HTH
Steve C

From the parent form(f_CofC), need to get the value of a
textbox(qty1) in the subform (Sub_data) and check to see
if there is a value in the text box. I was trying to use
the following command, but I kept getting something
similar to "the field (sub_data)could not be found"
Sub_data is my subform.
Here is the code I am trying.
If Forms!f_cofc![sub_data].qty1.Text > 0 Then

Any help?

Thanks,


.
Thank you for your help.
 
Back
Top