Issue to open file

Peter_1985 2,736 Reputation points
2022-02-09T06:39:36.237+00:00

Hi,
Can you help to issue below
172446-1c.png
due to the last line in the following

F1 = "J:\ZIM A4 IT Site\A4 Projects\SO Number Creator\Index\db1.accdb"  
Dim Adb As Object: Set Adb = CreateObject("Access.Application")  
'Call Adb.OpenCurrentDatabase(F1)  
Adb.Visible = False  
  
Dim db As DAO.Database  
  
Set db = DBEngine(0).OpenDatabase(F1)  
Microsoft 365 and Office Development Other
Microsoft 365 and Office Access Development
Developer technologies Visual Basic for Applications
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.