You don't have to do anything special. When you open form in Form Designer all expressions in the form properties are evaluated.
>
>How do you get a function to run in design mode like this? "I run the program, open the form, the date is populated" I tried it and I can't get it to run at all in design mode...
>
>If this is possible I can see all sorts of useful applications for this sort of thing.
>
>Thanks for your sage advice,
>
>Steve
>
>>I have a form that has a property called StartingInvDate. It calls a function that returns the week ending date for a given date. This company's week ending is Sunday each week. So given any date, the function returns the date of the week end that the passed date falls within. So the actual property value is =GetWkEndDate(date()) - 7
>>
>>I run the program, open the form, the date is populated, everything is just peachy.
--sb--