I like to check in a subform that the parentform is on a newrecord. Therefore i declared in the parentform a boolean 'intnewrec'.
In the current event of the parentform i use the following code:
If Me.NewRecord then
intnewrec = true
end if
Now in the subform of this parentform i have the following code in
the gotfocus event of the first control of this subform:
If Me.Parent!intnewrec = true then ...
This result in a error message saying that the field intnewrec isn't found.
What do i wrong ?
In the current event of the parentform i use the following code:
If Me.NewRecord then
intnewrec = true
end if
Now in the subform of this parentform i have the following code in
the gotfocus event of the first control of this subform:
If Me.Parent!intnewrec = true then ...
This result in a error message saying that the field intnewrec isn't found.
What do i wrong ?