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

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
 
A

an

Thanks for your reply.

Already your site knew but this example not.
Thanks more one time.
an
 
A

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top