can't add a .accde MS access file(located outside the project folder) as AccessDataSource
问题 I'm pretty sure that the .accde file does exist. I noticed that VS asks for .mdb file, but a .accde is also a MS Access generated database file. Here is the screenshot(hope it helps): 回答1: From the MSDN AccessDataSource page. The AccessDataSource class does not support connecting to Access databases that are protected by a user name or password, because you cannot set the ConnectionString property. If your Access database is protected by a user name or password, use the SqlDataSource control