
???????? GURUS - Showing or Loading Forms by use of String variable containing Form Name
Quote:
>I'd like to know the answer to this one also. Anybody out there know it??
>This could save alot of resources for me if I could use the form strings
>when I need them.
>Thanks,
>Craig Johnson
>> In Access you can open a Form by using a String variable that contains
>> the Form Name. The basic syntax is as follows:
>> DoCmd.OpenForm formname
>> where formname is a String expression.
>> Can string variables be used in a similar manner in VB5?
>> TIA, Regards, Michael.
This is a kluge, but if the form is loaded, you can loop through the forms
collection, comparing the current Form.Name to the value in the variable, then
showing it when true.
This worked in a little test I ran.
R,
Mike