Clarification on Problems with DMax +1

  • Thread starter Thread starter Tina
  • Start date Start date
T

Tina

Where did you place the code outlined below??? Under the
form or under a specific control.

HI Tina!
I've just tried the Dmax +1 and it works ok..
Here my code:

dim res as Long
res = DMax("ClientNo", "clients") + 1
In your case it would look soemthing like this:
res = DMax("System_ID", "NameOfYourTable") + 1

I hope that you wish to add +1 to the Max found in the
column 'System_ID'. If this is the case then
replace 'NameOfYourTable' by the name of the table
which 'System_ID ' is a part of and that sould do the
trick..
The 'res' should then be used as the new 'System_ID'
number for that new user/client.

hope this helps,
PAtrick
 
In this example I put-it in the Click event of a button,it
depends where you want to have this append..

PAtrick
 

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

Similar Threads

A little bit more help on DMax +1 4
More help on DMax+1 7
Problems with DMax +1 1
Error Message on DMax +1 1
Please Help 1
incrementing key field 3
Weird behavior when calling function 4
DMax Syntax (?) 9

Back
Top