what if date-field is empty

J

Jean-Paul

tb!datum_uitvoer = Me!Datum_opdracht
Returns an error when me!Datum_opdracht is left empty

I tried tb!datum_uitvoer = Nz(Me!Datum_opdracht,"")

but this isn't correct...
What is?

Thanks
JP
 
D

Douglas J. Steele

Date fields must contain dates or Null.

If you don't want the date field to be Null, you'll have to pick a default
date to use:

tb!datum_uitvoer = Nz(Me!Datum_opdracht, #1900-01-01#)
 

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

error with date-field 3
in use by another 4
recordset "over" 2 forms 3
Editing record 2
next record please 6
Shared Link is showing empty notebook 1
code goes too fast 1
entryfield linked to selectionlist 1

Top