Blank date

  • Thread starter Thread starter ReidarT
  • Start date Start date
R

ReidarT

I am trying to add records to a table with a date field (access-database)
where some of the records have a date and some haven't.
I use
dim dteReturDate as Date
If IsDate(RsMem("Returdato").Value) Then
dteReturdato = RsMem("Returdato").Value
Else
dteReturdato = Null
End If
..addnew
RsMem2.AddNew
RsMem2!Returdato = dteReturdato
..Update

Problem is the Null and the debugging stops at the RsMem2!Returdato-line
regards
reidarT
 
Reidar,

This is an adodb question.

There is a small however active newsgroups where at least Paul and Bill are
forever answering on this kind of questions (They both are VB.Net)

microsoft.public.dotnet.languages.vb.data

(Bill is not active in this newsgroup and I did not see Paul for a while, I
don't know if he lives in the south of the US.)

I hope this helps,

Cor
 

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