?
Solved

DoCmd.TransferDatabase,  specify index in code

Posted on 2005-03-08
2
Medium Priority
?
233 Views
Last Modified: 2012-06-27
Hello,

I am writing an access app for a disconnected view of an oracle database

i can handle importing tables no problem

DoCmd.TransferDatabase acImport, "ODBC", strOdbc, acTable, "SPATIAL.V_LITTERBIN", "SPATIAL_LITTERBIN"

but this 'table' runs off a view so the index BIN_ID needs defining in the local db.
anyone got a bit of code that will define the index once the table is imported
also can you replace tables without having to delete the original. ath the moment it will just import the table and add a number to the end if the object already exists

Thanks

Mark


0
Comment
Question by:markofsoton
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 26

Accepted Solution

by:
dannywareham earned 280 total points
ID: 13486019
0
 
LVL 51

Assisted Solution

by:Steve Bink
Steve Bink earned 220 total points
ID: 13486562
>>> also can you replace tables without having to delete the original.

No.  You can delete all the records from the original (thus leaving the structure intact) and replace them with new records, but otherwise you must DROP the table and recreate it.
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question