Hi
If you are to use a laptop for updating your data then read up on Replication. It haddles the sort of problem you have identified using globally unique identifiers (GUIDs). These are random rather than sequential numbers.
I hope this helps.
currentdb.name gives you the full installation path. If you want just the folder then manipulate the string using instr, instrrev, mid etc.
The following function from the KB will give you the backend.
Public Function Get_Linked_DbName(tableName As String) As String
Dim myDb As...
The approach I use is to test for the presence of the last table on application start e.g.start splash screen. The reason for using the last table is if a previous re-link failed earlier tables may be linked but not latter tables. If the table isn’t present prompt the user to locate your b/e db...
The error is probably because your control is a label control. Place On Error Resume Next
before your other code. If you need error handling then test for the specific err and then resume next.
dim ctl as control
for each ctl in me.controls
ctl.enabled = false
next
If you only want certain controls then using a tag on control may prove useful to you.