Thread moved to 'Database Development' forum

It sounds like you are using SQL Server Express, in which case there is an instance name of SQLExpress, so you should add that:
Code:
"Data Source=localhost\SQLExpress;Integrated Security=SSPI;" & _