...= Nz(DMax("...

  • Thread starter Thread starter an
  • Start date Start date
A

an

Hello!

I have a command button, for add new record with
incrementation new number, in MainForm, I use:
Me.IdPerc.Value = Nz(DMax("IdPerc", "T_Perc"), 0) + 1

Now, I would like to increment new record in SubForm,
where the IdPerc was of the MainForm. This SubForm is
based in T_Troc.
In adition, One Perc to many Troc.

Thanks in advance.
an
 
Exactly!

Now, my difficult is to aplly your sample to Command
button, where one click to add new record through SubForm.

Many thanks.
an
 
Back
Top