Hi
After working so hard in the forest of MS Access and SQL Server Cloud and sorting out almost all the challenges like speed, parameter queries and others. Now I have realized that it is not possible to start all over again migrating tables, converting MS Access queries to SQL Server new Back End. We have six companies in the group and each company has its own subgroups meaning each company must maintain its own databases with its subgroups.
Is there a way to simply copy the already worked out empty tables and Views in SQL server from an existing database to a brand-new database? Any short example will help.
Lastly, I want to use the VBA code below to relink the 120 tables on click event, for example I have about 120 tables in the current database, now the other remote users do not have Full MS Access, they are using MS Access Runtime which means that they will not have the inbuilt Link Manager to refresh the tables after installing of the ODBC either 32/64 BITs. Below is the code in question:
The above code appears to corrupt my application unless there is something I'm missing in it. For example, the size of my application is 23mb, if I use the above code then it grows to 70 mb. That is why I think I'm missing something here.
After working so hard in the forest of MS Access and SQL Server Cloud and sorting out almost all the challenges like speed, parameter queries and others. Now I have realized that it is not possible to start all over again migrating tables, converting MS Access queries to SQL Server new Back End. We have six companies in the group and each company has its own subgroups meaning each company must maintain its own databases with its subgroups.
Is there a way to simply copy the already worked out empty tables and Views in SQL server from an existing database to a brand-new database? Any short example will help.
Lastly, I want to use the VBA code below to relink the 120 tables on click event, for example I have about 120 tables in the current database, now the other remote users do not have Full MS Access, they are using MS Access Runtime which means that they will not have the inbuilt Link Manager to refresh the tables after installing of the ODBC either 32/64 BITs. Below is the code in question:
Code:
Private Sub Form_Open(Cancel As Integer)
Dim dbs As DAO.Database
Dim tdf As DAO.TableDef
Set dbs = CurrentDb
For Each tdf In dbs.TableDefs
If Len(tdf.Connect) > 0 Then
tdf.Connect = [ODBC] = "DRIVER=[SQL Server Native Client 11.0] " & _
"SERVER=Mwiinde\SQLExpress;DATABASE=Accounts;Trusted_Connection=Yes"
tdf.RefreshLink
End If
Next tdf
Set tdf = Nothing
Set dbs = Nothing
End Sub
The above code appears to corrupt my application unless there is something I'm missing in it. For example, the size of my application is 23mb, if I use the above code then it grows to 70 mb. That is why I think I'm missing something here.