Re: Split Database Difficulties

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



In general, if you are altering the structure of the back end, you need to modify the front end in the same way.

Delete from the front end any table than no longer exists in the back end, and attach any new tables:
File | Get External | Link

It is possible to do it programmatically.
This query will give you the list of tables in the back end:

SELECT MSysObjects.Name
FROM MSysObjects IN 'C:\MyPath\MyFile.mdb'
WHERE ((MSysObjects.Type = 1)
AND (Not ((MSysObjects.Name Like "~*")
OR (MSysObjects.Name Like "MSys*"))))
ORDER BY MSysObjects.Name;

But in general you have access to the front end at design time, so it's not something that is commonly done.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Peter Hallett" <PeterHallett@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:ADA7C45D-0F1A-4F32-828D-C3276D1495B8@xxxxxxxxxxxxxxxx
This question must have been asked before, but I cannot see anything of
relevence in the present posts so forgive me if I am duplicating an earlier
query.

If a table in a back-end database is renamed then it is no longer visible to
the front-end. Presumably, the same will also be true if a new table is
added to the back-end. Is there a way of relinking the databases after such
changes are made to the back end? On-line Help is particularly ‘help-less’
in this area and the several 4 Kg Access manuals that I possess also seem
remarkably coy on the subject. The only solution I can currently think of is
to reimport the back-end into the front-end and then re-split it. Surely
not!?
--
Peter Hallett

.



Relevant Pages

  • Re: Front-end db run Parameter query in back-end Access db using ADO?
    ... Realistically, all queries should be in the front-end, not the back-end. ... I have a parameter query in a back-end Access database that I would like ... Can I call this parameter query from a front-end Access database and pass ...
    (microsoft.public.access.queries)
  • Re: Deleting a table in the backend using VBA
    ... You've described "how" you want to do something (delete a back-end table ... in the front-end to clear it out and reload it with the new ... set of data (append query). ... I am trying to delete a table in the backend database using code in the ...
    (microsoft.public.access.modulesdaovba)
  • Re: Front-end / back-end queries
    ... A few years, back, to satisfy my curiosity, I created a back-end (data ... tables) with a query in it. ... Then I referenced the back-end from a front-end and called the function. ...
    (microsoft.public.access.tablesdbdesign)
  • Re: Split Database Difficulties
    ... Microsoft Office/Access MVP ... If a table in a back-end database is renamed then it is no longer ... to reimport the back-end into the front-end and then re-split it. ...
    (microsoft.public.access.tablesdbdesign)
  • Re: Front-end db run Parameter query in back-end Access db using ADO?
    ... The only reason that I wanted to keep this query in the back-end was because ... having to have the front-end link all the tables. ... active open recordsets against those tables? ...
    (microsoft.public.access.queries)