Gadget Reviews, Tech Tips, Computer Optimization, Tech News, Vista Tweak, Software Tricks, Blogging Tips, Downloads


(Fix Almost all errors and Speed up PC Performance up to 300%)

Runtime error ‘94′, invalid use of null

You will see this type of runtime error 94, invalid use of null in application that uses ADO to connect to an Access database. Some of the entries in the recordset are blank and these seem to be giving me problems. I keep getting the error “runtime error ‘94‘, invalid use of null” error. Text boxes hold values as strings and string variables cannot hold NULL values.

Example line that causes error:
txtCompanyName.Text = frmCustomers.AdodcCustomers.Recordset.Fields(”CompanyName”)

change it to

txtCompanyName.Text = frmCustomers.AdodcCustomers.Recordset.Fields(”CompanyName”) & “”

this will fix every NULL problem

good luck :)

Popularity: 4%

Please Share and Bookmark :)
  • StumbleUpon
  • del.icio.us
  • Technorati
  • Reddit
  • BlinkList
  • Facebook
  • Mixx
  • Twitter

Triple Your PC Performance with Perfect Optimizer!


One Response to “Runtime error ‘94′, invalid use of null”


  1. rosa says:

    thx so much… :)



Leave a Reply

You must be logged in to post a comment.


Learn How to Make Money