Hi All,
Does briefcase become corrupt? Probably a silly question but...
My client has been happily using a front end / backend for sometime. He drags the backend to the briefcase causing the replication thing to happen then over a network drive, moves the briefcase to a Targatech(I think) mobile tablet (mini computer running windows etc) which is used for field data entry. At the end of the day the staff bring the tablet back and sync the data back using the briefcase...no problems.
Yesterday I sent an update of the frontend, which modified a field type in one of the tables using this code:
Set db = OpenDatabase(strConnect)
For I = db.Relations.Count - 1 To 0 Step -1
If (db.Relations(I).Table = "Vintage1") Then
db.Relations.Delete (db.Relations(I).Name)
End If
Next I
db.TableDefs.Delete ("Vintage1")
Set db = CurrentDb
DoCmd.TransferDatabase acExport, "Microsoft Access", strConnect, acTable, "Vintage8_9Exp", "Vintage1", False
Dim newvint As TableDef
Dim strvint As String
strvint = "Vintage1"
Set newvint = dbLink.TableDefs(strvint)
newvint.Connect = ";DATABASE=" & strConnect
newvint.RefreshLink
There are probably some Dim's missing from the top of the code which i didn't worry about pasting here as there's quite a bit to look thru.
Anyway the above method I've used for about 6 years, no worries...what I am worried about is that now the clients backend is replicated am I changed a table that its causing problems.
I told the client that he should ditch the old breifcase and make a new one 'cos I'd chaged the backend...but now the code I have for the frontend won't link to the backend in the breifcase, it will link when sitting around on the computer somewhere but not in the breifcase. The error is relating to not being able to find correct tables.
I've probably gone a long winded way of asking 'can a briefcase become corrupt and need repairing' but wanted to have all the info to consider.
Thank you very much for any who have a look at my problem
kind regards,
Rachael
Does briefcase become corrupt? Probably a silly question but...
My client has been happily using a front end / backend for sometime. He drags the backend to the briefcase causing the replication thing to happen then over a network drive, moves the briefcase to a Targatech(I think) mobile tablet (mini computer running windows etc) which is used for field data entry. At the end of the day the staff bring the tablet back and sync the data back using the briefcase...no problems.
Yesterday I sent an update of the frontend, which modified a field type in one of the tables using this code:
Set db = OpenDatabase(strConnect)
For I = db.Relations.Count - 1 To 0 Step -1
If (db.Relations(I).Table = "Vintage1") Then
db.Relations.Delete (db.Relations(I).Name)
End If
Next I
db.TableDefs.Delete ("Vintage1")
Set db = CurrentDb
DoCmd.TransferDatabase acExport, "Microsoft Access", strConnect, acTable, "Vintage8_9Exp", "Vintage1", False
Dim newvint As TableDef
Dim strvint As String
strvint = "Vintage1"
Set newvint = dbLink.TableDefs(strvint)
newvint.Connect = ";DATABASE=" & strConnect
newvint.RefreshLink
There are probably some Dim's missing from the top of the code which i didn't worry about pasting here as there's quite a bit to look thru.
Anyway the above method I've used for about 6 years, no worries...what I am worried about is that now the clients backend is replicated am I changed a table that its causing problems.
I told the client that he should ditch the old breifcase and make a new one 'cos I'd chaged the backend...but now the code I have for the frontend won't link to the backend in the breifcase, it will link when sitting around on the computer somewhere but not in the breifcase. The error is relating to not being able to find correct tables.
I've probably gone a long winded way of asking 'can a briefcase become corrupt and need repairing' but wanted to have all the info to consider.
Thank you very much for any who have a look at my problem
kind regards,
Rachael