Capture the new record event

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello, I am developing a dbase app which uses a tabulated form combining many
forms.

The first page of the tabulated form contains the main information for that
record and other pages secondary information i.e. they are linked subforms.
Depending on the information present in the main form depends what other
tabbed pages are available.

When a click the new record button from the std navigation bar the statement
I used to determine which pages are visible is bypassed; however when I click
on the go to last button (from the std navigation bar) then click next next
record (not new record) I am now in a new record (with the correct tabbed
pages visible - the statement fired).

All I wish to know is how to capture the goToNewRecord or new record option
(using the std toolbar, for this form it is not feasible to use customised
buttons)
 
hi

I have tried an if statement shown below from within the onCurrent event

If me.newRecord then msgbox "you are in a new record" end if

but when i click new record, the message is not displayed
 
hi,
what access version you are using?
and what excatly "new record" button you talking about?

at me looks like it works by any way you go to new record
 
It is working now. I was trying to call the same sub routine from both the
onLoad and onCurrent Events but It seems that you need to perform the
newRecord check within the onCurrent procedure.
 
Back
Top