D
David
I know these are pretty basic questions - I guess so
basic that no-one thinks it warrants an explanation. I
have three books + the help file and none covers it
explicitly so far as I can see.
1. From VBA, how do I display a new modal Access form?
Does it have to be done by DoCmd.OpenForm("MyForm")? Does
this create a new instance of the form or does it just
activate a form that has already been created?
2. From within the form's events, how can the form be
closed and control returned to the calling routine? Is
the form destroyed or simply hidden? (ie do results have
to be returned via global variables or are the form's own
public variables accessible once closed?).
3. Does anything need to be done once control has
returned (eg DoCmd.Close acForm, "MyForm") so that it can
be re-opened. Would it then be re-opened in the same way
as 1?
4. Another topic: Does form.ReQuery commit all data on a
bound form before re-executing the query? Does
form.Refresh? I need a method of committing the data
without moving to another record eg so that a report can
be run on the (changed) underlying data.
Any help will be appreciated.
Regards, David
basic that no-one thinks it warrants an explanation. I
have three books + the help file and none covers it
explicitly so far as I can see.
1. From VBA, how do I display a new modal Access form?
Does it have to be done by DoCmd.OpenForm("MyForm")? Does
this create a new instance of the form or does it just
activate a form that has already been created?
2. From within the form's events, how can the form be
closed and control returned to the calling routine? Is
the form destroyed or simply hidden? (ie do results have
to be returned via global variables or are the form's own
public variables accessible once closed?).
3. Does anything need to be done once control has
returned (eg DoCmd.Close acForm, "MyForm") so that it can
be re-opened. Would it then be re-opened in the same way
as 1?
4. Another topic: Does form.ReQuery commit all data on a
bound form before re-executing the query? Does
form.Refresh? I need a method of committing the data
without moving to another record eg so that a report can
be run on the (changed) underlying data.
Any help will be appreciated.
Regards, David