Ask a Question related to Microsoft Access, Design and Development.
-
Dickie Black #1
Push values from bound form to undound, edit, then pull back
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
Dickie Black Guest
-
Edit, Update, Cancel Push button question
I have a Edit, Update, Cancel column in my datagrid form modifying the data in each row. These buttons are of type PushButton rather than... -
DG-Edit-Loosing data; bound columns - pushbuttons; dataReader
Dear Readers, I am using C# (vb examples will work for me too - i am vb progrmr). I created a dg (datagrid) with bound columns (hesistant to... -
Which options on a G5 would push ship date back to SEP 29?
As recently as 2-3 days ago, I read that orders placed for G5's were showing up with estimated ship date on or before August 29, 2003, having been... -
Wanted - push/rexec/pull script for remote program builds
I have various ActiveState Perl scripts that run on Windows, Linux, and Solaris, and soon AIX and possibly others. These must be compiled using the... -
Set field values on bound form...
Hi, I have a bound form with a number of fields. I have controls for the fields I want the user to be able to edit, but want to set the values... -
Dickie Black #2
Re: Push values from bound form to undound, edit, then pull back
Thanks, I knew it would be something that simple!
Dickie
"Elwin" <bosk@attbi.com> wrote in message
news:3e7a01c340a0$1a96a090$a601280a@phx.gbl...> you should be using exclamations to separate your object
> names, not periods.
> eg) Forms!SessionDesc!SessionDescText
>
> Periods preceed a method or property name that has been
> assigned by Access. Exclamations preceed an object name
> that has been assigned by the user.
> eg) Forms!SessionDesc.Requery
>
> Good luck.
>> quite work. I have> >-----Original Message-----
> >Hi,
> >
> >I've seen answers to similar questions, but none of them> be able to click a> >a main bound form with various bound controls. I wish to> they can be edited> >button which will do the following:
> >
> >open another (unbound) form
> >populate with some of the values from the main form, so> acDialog " to pause the> >close the new form
> >transfer the edited values back.
> >
> >I know about "DoCmd.OpenForm, "MyForm", , , , ,> the new form to> >code until the new form is hidden, but how do I then tell> test].SessionDescText> >use values from the main form?
> >
> >If I try
> >
> > Forms.SessionDesc.SessionDescText = Forms.[Session> errors, whether this> > Forms.SessionDesc.SessionPrimary = Forms.[Session
> >test].PrimaryLecturerText
> > Forms.SessionDesc.SessionSecondary = Forms.[Session
> >test].SecondaryLecturerText
> >
> >I get "Object doesn't support this property or method"> Form_Current event of the> >code is in the OnClick event of the button, or the> >unbound form.
> >
> >I'm sure it's something relatively simple I'm missing...
> >
> >Dickie
> >
> >
> >.
> >
Dickie Black Guest
-
John Vinson #3
Re: Push values from bound form to undound, edit, then pull back
On Wed, 2 Jul 2003 12:08:02 +0100, "Dickie Black"
<r.black@sheffield.ac.uk> wrote:
Use ! instead of . - it's confusing because they will both *often*> Forms.SessionDesc.SessionDescText = Forms.[Session test].SessionDescText
work interchangably but they're not quite interchangable. The ! refers
to an item in a collection (such as the Forms collection, or the
Controls collection of a form), and that's what you need here.
John W. Vinson[MVP]
Come for live chats every Tuesday and Thursday
[url]http://go.compuserve.com/msdevapps?loc=us&access=public[/url]
John Vinson Guest



Reply With Quote

