database engine doesnt recognise field name

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

error message "the database engine does not recognise a field name in either
validation expression or the default value in table"
Tring to use DateAdd expression to set a default value by refering to Date()
in another fiedl form same table.
 
Are you saying that you put a reference to another field in a field's
Default Value? I don't believe that's possible.
 
Really ? I thought the examples indicated that DateAdd("m",3,[fieldname1])
(where fieldname1's default value is Date() ) would work ok. Essentially,
I'm trying to add a 3 month default expiry date from the date of entry. Do
you know any way to work around it ?
Thnx
Anth.
 
I believe you can do that in a form, but not in a table.

Of course, you shouldn't be entering data directly into tables anyhow:
that's what forms are for.

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)


Anth said:
Really ? I thought the examples indicated that DateAdd("m",3,[fieldname1])
(where fieldname1's default value is Date() ) would work ok. Essentially,
I'm trying to add a 3 month default expiry date from the date of entry. Do
you know any way to work around it ?
Thnx
Anth.

Douglas J Steele said:
Are you saying that you put a reference to another field in a field's
Default Value? I don't believe that's possible.
 
Ok, many thnx. Will do it that way.

Douglas J Steele said:
I believe you can do that in a form, but not in a table.

Of course, you shouldn't be entering data directly into tables anyhow:
that's what forms are for.

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)


Anth said:
Really ? I thought the examples indicated that DateAdd("m",3,[fieldname1])
(where fieldname1's default value is Date() ) would work ok. Essentially,
I'm trying to add a 3 month default expiry date from the date of entry. Do
you know any way to work around it ?
Thnx
Anth.

Douglas J Steele said:
Are you saying that you put a reference to another field in a field's
Default Value? I don't believe that's possible.

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)


error message "the database engine does not recognise a field name in
either
validation expression or the default value in table"
Tring to use DateAdd expression to set a default value by refering to
Date()
in another fiedl form same table.
 

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

Back
Top