Checking in a orersubform, that we deal with a new record in frmOrders

odrap

Registered User.
Local time
Today, 15:49
Joined
Dec 16, 2008
Messages
156
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 ?
 

Users who are viewing this thread

Back
Top Bottom