Dateserial function in default value column

G

Guest

Currently I use dateserial function to convert number to the date/time format
using query and its work.

UPDATE billing SET billing_date =
dateserial(left$(maint_date,4),Mid$(maint_date,5,2),right$(maint_date,2));

But when I put the dateserial function in the default value field

= dateserial(left$(maint_date,4),Mid$(maint_date,5,2),right$(maint_date,2))

an error message 'Type Mismatch' prompted

Anybody can help me regarding this problem
 

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