I have a MS 2000 FE and BE that reside in the same directory. I want to set it up so when you open the FE it removes the link to the BE (regardless of where it is) and links to the BE that exists in the current directory of the FE.
FE = "EquipRecord.mdb"
BE = "EquipRecordData.mdb"
Table to be linked = "EquipmentRecords"
I tried this code on the opening action of a form in the FE that is not bound to any tables:
I get the following error:
Microsoft Visual Basic
Run-time Error '3078':
The Microsoft Jet database engine can not find the input table or query 'EquipmentRecords'. Make sure it exists and that its name is spelled correctly.
[/color blue]
My objective is to make the front end and back end work in any directory they are stored in as long as they are both in the same directory. This is not a networked app that needs to be accessed by multiple individuals, but we may end up with multiple individuals each using their own FE / BE and I don't want any restrictions on where the place it on their system...
Thoughts / input / suggestions welcome...
Thanks,
FE = "EquipRecord.mdb"
BE = "EquipRecordData.mdb"
Table to be linked = "EquipmentRecords"
I tried this code on the opening action of a form in the FE that is not bound to any tables:
Code:
DoCmd.DeleteObject acTable, "EquipmentRecords"
DoCmd.TransferDatabase acLink, "Microsoft Access", CurrentProject.FullName, acTable, "EquipmentRecords", "EquipmentRecords"
I get the following error:
Microsoft Visual Basic
Run-time Error '3078':
The Microsoft Jet database engine can not find the input table or query 'EquipmentRecords'. Make sure it exists and that its name is spelled correctly.
[/color blue]
My objective is to make the front end and back end work in any directory they are stored in as long as they are both in the same directory. This is not a networked app that needs to be accessed by multiple individuals, but we may end up with multiple individuals each using their own FE / BE and I don't want any restrictions on where the place it on their system...
Thoughts / input / suggestions welcome...
Thanks,