Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Efficient statement for making fields visible/invisible

Status
Not open for further replies.

josephwc

Programmer
Oct 13, 2005
83
US
I have fields named after the month and year for the next two years (Jan2006 to Dec2007) with a field called "past" for values before Jan2006 and "future" for fields after Dec2007. The field names have a number value after them from (01-08) which relates to another particular field value in a field called txtfunc (01-08).

How do I create a statement without making an if then statement for all of the 208 different fields as shown in the example below?

If [EstimatedStartDate]<=#1/31/2006# and [EstimatedStartDate]+ [Duration]>= #1/1/2006# and isnotnull([txtfunc01.value] then
Jan200601.visible = true
else
Jan200601.visible = false
end if
 
How are ya josephwc . . .

What ever you do, you'll have to enumerate the forms [blue]Control Collection[/blue] . . .

Calvin.gif
See Ya! . . . . . .
 
How would I go about that? I am not sure how to translate what I have into a Contolled Collection.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top