Question:
How do I do a if statement on a main form to reference a field on a subform?
I.E.
Subform = CP2Criteria
Field in Subform = BeginingMonth
Field on Main form = CP2BM (unbound)
need:
if me.cp2criteria.beginingmonth=1 then
me.cp2bm="April"
else if me.cp2criteria.beginingmonth=2 then
me.cp2bm="May"
etc.....
Problem is that it is saying .beginingmonth is not found
Any help is greatly appreciated.
How do I do a if statement on a main form to reference a field on a subform?
I.E.
Subform = CP2Criteria
Field in Subform = BeginingMonth
Field on Main form = CP2BM (unbound)
need:
if me.cp2criteria.beginingmonth=1 then
me.cp2bm="April"
else if me.cp2criteria.beginingmonth=2 then
me.cp2bm="May"
etc.....
Problem is that it is saying .beginingmonth is not found
Any help is greatly appreciated.