On Tue, 15 Feb 2005 14:46:29 +0100, "proo" <patrick.DeleteThis@industrienet.nl>
wrote:
>I would like to open a addrecord form. In this form I would like teh Field
>DebNr to be filled with the value of the field DebNr in my (open) form
>FrmStam.
>
>I used the VisualBasic code ;
>
>Private Sub Form_Open(Cancel As Integer)
>
> If IsOpen("FrmStam") Then
> DebNr.DefaultValue = _
> Forms!FrmStam!DebNr
> End If
>
>End Sub
>
>After running this code the value of the field DebNr in the Addrecord form
>is [#Naam?] . In Englisch [#Name?]
>
>Where do I go wrong ?
Apparently, MS Access cannot find a field named "DebNr" in the
Forms!FrmStam form.
If the field is already bound, if it already has a "Control Source",
then the code should be unnecessary. Right click on it, select
properties. Click on the Data tab. (I created a screenshot in English
MS Access '97, but binary attachments aren't allowed on my server.)
What version of MS Access are you using?
_______________________
Michael B. Johnson<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: New record with data from other form