Stuart McLachlan
stuart at lexacorp.com.pg
Thu Apr 7 16:37:13 CDT 2005
On 7 Apr 2005 at 15:18, Arthur Fuller wrote: > I have a form called frmEventSelector, to which I pass the name of the > report or form I want to run. The Event selector contains a combo that > sets the EventID I want. Then I examine the name of the OpenArgs > argument. Code in the form looks at the prefix, and if it's frm it runs > the form; if it's rpt it runs the form, and if it's qry it runs the query. > > How can I let this form know that I want to run a given form in > DataSheet mode? Even though I set its default mode to DS, it doesn't > seem to help. > Pass the form name as "ds" & frmMyForm.name(for DataSheet) or "fv" & frmMyForm.name (for FormView). Then parse OpenArgs for these characters as well. -- Stuart