Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / New Users / May 2005

Tip: Looking for answers? Try searching our database.

NUMBER PLUS 1

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
terry - 20 May 2005 15:28 GMT
I have a field  that i imput a starting number and would like the next field
to be the number I input plus 1 what is the expression I need to use

Thank you
Signature

Terry

fredg - 20 May 2005 15:48 GMT
> I have a field  that i imput a starting number and would like the next field
> to be the number I input plus 1 what is the expression I need to use
>
> Thank you

On your form, in the control's Default property, write:
DMax("FieldName]","TableName]")+1

Signature

Fred
Please only reply to this newsgroup.
I do not reply to personal email.

terry - 20 May 2005 19:19 GMT
Added the code you suggested, no numbers are displayed in the next field
here is some additional information
the first field is called start number(this is the field I add the starting
numberto)  the second field is c1
when you say In the controls Default property add the following :
dmax("FieldName]","TableName]")+1 are you refering to the start number field
or the c1 field . I have tried it both ways with no success

Thank you for your time and help

Signature

Terry

> > I have a field  that i imput a starting number and would like the next field
> > to be the number I input plus 1 what is the expression I need to use
[quoted text clipped - 3 lines]
> On your form, in the control's Default property, write:
> DMax("FieldName]","TableName]")+1
fredg - 20 May 2005 23:02 GMT
> Added the code you suggested, no numbers are displayed in the next field
> here is some additional information
[quoted text clipped - 5 lines]
>
> Thank you for your time and help

this was your original question:
I have a field  that i imput a starting number and would like the next
field to be the number I input plus 1 what is the expression I need to
use

In the Default Property of the [Start Number] or is it the [C1]
control, write:
DMax("[Start Number]","WhateverTheTableNameIs")+1

If there is a possibility of [Start Number] being Null (nothing
entered) then write:
Nz(DMax("[Start Number]","WhateverTheTableNameIs"),0)+1

Signature

Fred
Please only reply to this newsgroup.
I do not reply to personal email.

Rick Brandt - 21 May 2005 00:00 GMT
> I have a field  that i imput a starting number and would like the
> next field to be the number I input plus 1 what is the expression I
> need to use
>
> Thank you

Next *field* on the same record or same field on the next *record*?

Signature

I don't check the Email account attached
to this message.     Send instead to...
RBrandt    at       Hunter      dot      com

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.