I am connecting to MS Access DB using vb.net as given below...
oDBEngine = oAccess.DBEngine oDB = oDBEngine.OpenDatabase(Name:=strFullFileName, Options:=False, ReadOnly:=False, Connect:="")
And then opening the DB using the following syntex...
oAccess.OpenCurrentDatabase(filepath:=strFullFileName, Exclusive:=False)
Now my problem is:
One of the DB contains a form which opens Automatically while we are opening the DB. So when I am trying to run the application for this particular DB the DB opens up. But as per my requirement I do not need to open the DB explicitly.
Is there any way to restrict the DB to open in such cases?
NOTE: This works fine for all other scenarios i.e. DB is not opening, but I can able to count Activex controls form each form as per my application requirement.