A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Create field default using the ID field in Access 2007



 
 
Thread Tools Display Modes
  #1  
Old July 13th, 2008, 05:34 PM posted to microsoft.public.access.tablesdbdesign
JimG
external usenet poster
 
Posts: 53
Default Create field default using the ID field in Access 2007

I am setting up an existing Access 2007 database on Sharepoint which assigns
a new ID field. Problem is all our databases have a 6 or 7 digit ID which
match a claim file number. We tried to use the ID field + a 6 or 7 digit
number as a default (= [ID] + 600000) in the claimID field that updates when
a new row is created but Access reports an error "the field [ID] does not
exist etc." I have tried =Nz(DMax("ClaimID","Claimant",""),0)+1 and
=Nz(DMax("ID","Claimant",""),0)+1 as a default. Both result in a error
message that "Nz" is an unknown function. Help!!

Thanks
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:36 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.