"Data type conversion error" (Run-time error '3421')

I have a VB-script in Excel that saves some values in to an Access Database. I have some trouble with cells that are Empty. The values are both text and numbers. In the db the number fields are set to Required=NO and the Text fields Allow Zero Length=YES. I still get an error in the VB-script saying "Data type conversion error" (Run-time error '3421') when a value is Empty.

I wonder if there is a way of telling Excel to generally accept empty values. The sheet is quite big (range a1:i77) and the values varies from time to time.

Can someone please help me with this?!

Please tell if you need more info.
EcmilAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jackjeckylCommented:
You may need to tell access to enter a value of null.  Make sure to specifically say null and not " ".  
trkcorpCommented:
Here is a hokey trick that may help you on character strings.  When setting the target variable append "" to the source variable. Example:
a = b & ""
If b is null appending "" to it will prevent the error.  
As for numerics, set default values to 0...
Good luck!
kpchan2Commented:
As the runtime error (you expected) does not give you a critical problem of those data, why not bypass it using "On error resume next" in your VBScript?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
EcmilAuthor Commented:
I think I go with your solution. The run-time error does not give me a critical problem, so it works using "On error resume next"

thanks!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.