ابو ياسين المشولي قام بنشر يناير 5, 2018 قام بنشر يناير 5, 2018 Dim wrkDefault As Workspace Dim dbsNew As Database Dim strPaht As String Dim dbNAME As String strPath = Application.CurrentProject.Path & "\" dbNAME = strPath & Forms!Form!strDBName.Value & ".mdb" Set wrkDefault = DBEngine.Workspaces(0) Set dbsNew = wrkDefault.CreateDatabase(dbNAME, dbLangGeneral, dbEncrypt) dbsNew.Close
ابو ياسين المشولي قام بنشر يناير 5, 2018 الكاتب قام بنشر يناير 5, 2018 تم وجود الحل وهو Public Function CreateDatabase() Dim wrkDefault As Workspace Dim dbsNew As Database Dim strPaht As String Dim dbNAME As String strPath = Application.CurrentProject.Path & "\" dbNAME = strPath & Forms!Form!strDBName.Value & ".mdb" Set wrkDefault = DBEngine.Workspaces(0) Set dbsNew = wrkDefault.CreateDatabase(dbNAME, dbLangGeneral) dbsNew.Close End Function
الردود الموصى بها
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.