I've read about the speed benefits of creating a persistent connection when there are multiple users. I also read an easy way of doing this is open a hidden form that links to a table, preferably a small table. I have one such table that is not used too often but I read from a couple of users that they had some data corruption issues when using a table for the persistent connection that is also used at other times.
So I thought I'll play it safe and create a small table with 1 record. But I'm not looking forward to this doing it over 200 times.
So is there a way to create and link a table for the backend?
I saw this snippet of code for creating a table, but obviously it creates it on the frontend:
And if possible, I'd like it to be automatically populated with a value.
So I thought I'll play it safe and create a small table with 1 record. But I'm not looking forward to this doing it over 200 times.
So is there a way to create and link a table for the backend?
I saw this snippet of code for creating a table, but obviously it creates it on the frontend:
Code:
[COLOR=#000000][FONT=verdana]Sub CreateTable()[/FONT][/COLOR]
[COLOR=#000000][FONT=verdana]Dim dbs As Database, tbl As TableDef, fld As Field[/FONT][/COLOR]
[COLOR=#000000][FONT=verdana]Set dbs = CurrentDb[/FONT][/COLOR]
[COLOR=#000000][FONT=verdana]Set tbl = dbs.CreateTableDef("Test")[/FONT][/COLOR]
[COLOR=#000000][FONT=verdana]Set fld = tbl.CreateField("test1", dbText)[/FONT][/COLOR]
[COLOR=#000000][FONT=verdana]tbl.Fields.Append fld[/FONT][/COLOR]
[COLOR=#000000][FONT=verdana]dbs.TableDefs.Append tbl[/FONT][/COLOR]
[COLOR=#000000][FONT=verdana]dbs.TableDefs.Refresh[/FONT][/COLOR]
[COLOR=#000000][FONT=verdana]End Sub[/FONT][/COLOR]
And if possible, I'd like it to be automatically populated with a value.