I am trying to write a program which enters the value of a BLANK Excel cell into Access as a BLANK.
But what I keep getting is a zero.
Cell A1 is a blank. What am I doing wrong?
I have set Access to accept zero-length data as well.Code:Dim mydata as Double mydata= Range("A1").value SQL = "INSERT INTO MyTable ([Data]) VALUES ('" & mydata & "')"
Thank you.