D
Dickie Black
Hi,
I've seen answers to similar questions, but none of them quite work. I have
a main bound form with various bound controls. I wish to be able to click a
button which will do the following:
open another (unbound) form
populate with some of the values from the main form, so they can be edited
close the new form
transfer the edited values back.
I know about "DoCmd.OpenForm, "MyForm", , , , , acDialog " to pause the
code until the new form is hidden, but how do I then tell the new form to
use values from the main form?
If I try
Forms.SessionDesc.SessionDescText = Forms.[Session test].SessionDescText
Forms.SessionDesc.SessionPrimary = Forms.[Session
test].PrimaryLecturerText
Forms.SessionDesc.SessionSecondary = Forms.[Session
test].SecondaryLecturerText
I get "Object doesn't support this property or method" errors, whether this
code is in the OnClick event of the button, or the Form_Current event of the
unbound form.
I'm sure it's something relatively simple I'm missing...
Dickie
I've seen answers to similar questions, but none of them quite work. I have
a main bound form with various bound controls. I wish to be able to click a
button which will do the following:
open another (unbound) form
populate with some of the values from the main form, so they can be edited
close the new form
transfer the edited values back.
I know about "DoCmd.OpenForm, "MyForm", , , , , acDialog " to pause the
code until the new form is hidden, but how do I then tell the new form to
use values from the main form?
If I try
Forms.SessionDesc.SessionDescText = Forms.[Session test].SessionDescText
Forms.SessionDesc.SessionPrimary = Forms.[Session
test].PrimaryLecturerText
Forms.SessionDesc.SessionSecondary = Forms.[Session
test].SecondaryLecturerText
I get "Object doesn't support this property or method" errors, whether this
code is in the OnClick event of the button, or the Form_Current event of the
unbound form.
I'm sure it's something relatively simple I'm missing...
Dickie