Tables :: Deleting And Replacing A Linked Table?

Mar 5, 2014

My table (excel spreadsheet) sits on another directory from the DB. If I delete the table on this directory and immediately replace it with a table with the same filename, format, etc (only the data has changed) will each database user have to relink the table on their desktop DB? Or will the forms/subforms/reports still maintain their relationships/functions and just display the new data?

View Replies


ADVERTISEMENT

Dropping / Deleting Linked Tables In VBA Or Query

Apr 4, 2012

I have a number of linked tables that vary depending on use. How to delete them or drop them all from the database? I produced/stole some code that deleted all tables - but it didn't delete the linked ones.

View 3 Replies View Related

Tables :: Replacing 100% Of Table Content

Jul 1, 2014

I have a table (which has a few relationships) that contains 10.000 records up-to-date, but I've been making major changes to my database working on an old version from early June, when it had +9000 records.

What I'm planning to do to update the table:

export those 10.000 (up to date) records to a Excel file
delete those outdated +9000 records manually (select all + supr)
import the data from the Excel file so my new database is up-to-date again .

Is this acceptable or could lead to weird errors in the future?

View 2 Replies View Related

Deleting Excel Sheet Linked To Database

Aug 7, 2015

I have a database that links to an excel sheet and take data from it. For a fail safe i put deletes in several places in case of user error to make sure the sheet is deleted. If it is already deleted the other deletes don't act well.

I need to write a conditional iff statement that if it doesn't exist it ignores the delete call. Not sure how to structure it.

Private Sub Command3_Click()
DoCmd.DeleteObject acTable, "Sheet1"
DoCmd.Close acForm, "District Select Form"
End Sub

View 4 Replies View Related

Tables :: Replacing Existing Field By Lookup Value

Feb 23, 2013

I'm building a database to calculate yearly fees for customers. I have a list coming from our accountancy-database that shows a field with the clients name & surname combined and I have a table named 'customers' that contains the clients names & surnames as separate values.

The first table (let's name it "accountancy") thus contains a field "Customer". Example data in this field:

"John McLane"
"John Doe"
"Marcy Free"
"Zino Withers"

The second table ("customers") contains the fields "ID, name, surname". Example data in this table:

1;"John";"Doe"
2;"Marcy";"Free"
3;"John";"McLane"

Now, what I'm looking for is a way to replace the 'Customer'-field in the first table by a lookup field that contains the correct ID for that customer in the 'Customers'-table.

Lucky thing: there are no doubles in the customer's table, so no two customers have the same name AND surname.

View 6 Replies View Related

Tables :: Multiple Parents Table Linked To Child Table - Primary Keys

May 28, 2015

I have a table for a multiple parents linked to a child table. I need to figure out a way to only allow 1 parent to be coded as primary, 1 as secondary, and then the rest as other... I thought about making Primary/Secondary/Other a primary key. But then I can only have 1 other. I would have to make a finite number of parents that could be entered and I want an infinite number.... My end goal is to have a report that only has a primary and second parent on it, but the rest of the parents still exist in the table...

*Child_ID
Parent_First_Name
*Primary/Secondary/Other

View 8 Replies View Related

Tables :: Make Calculated Field In One Table That Calculates Values From Another Table Linked By Order ID

May 13, 2015

I have what is probably a stupid question but I've been struggling with this one for a while. I have an ordering database which has an Orders table (containing Order ID, Date, Supplier etc) and an Order Line table within which I have a combo box for Product name, supplier, price, VAT rate, Line price etc. At the moment, I have the order line table as a subform within the Order form (run from the Orders table). The problem I'm having is the subtotal and total fields. At the moment these are in the Order Line table as I cannot figure out how to get these in the Orders table. In summary, can I make a calculated field in one table that calculates values from another table (linked by Order ID)?

View 3 Replies View Related

Tables :: Data Entered In Table Linked With Other Table

Nov 11, 2013

I have two table

1 is name master containing EMPID(Primary Key)
2 is Saving which also contain EMPID

i want to entered data in Saving with each and every EMPID with Master

View 1 Replies View Related

How To Partition A Table Into Two Linked Tables

Mar 17, 2006

Hi, All,

I have so far only worked with single tables and queries but not with linked tables. Now the following problem has arisen.

We have a database all of whose fields except two are of type = Text. Two fields are type = Memo.

We have to submit this database, i.e. its main table, to an external company for automatic 'cleansing' (UK: Telephone preference service). The cleansing program converts the cleansed database into a comma-delimited text file and returns it to us as such, and we then have to convert it back into an Access table.

(That's the way our supplier works, it is not under our control, and we have to learn to cope with it.)

Now the cleansing program is being screwed up by our Memo fields, because they contain commas. So when the cleansing program sees a comma, it interprets this as the start of a new field, and the same happens when we convert the text file back into a table.

Two solutions were suggested by the cleansing company, but only the following seems suffiently automatic and therefore acceptable to us.

I NEED HELP IN IMPLEMENTING THAT SOLUTION.

-----------------------------

I want to move the two memo columns into a separate table (memo table), linked to the original table (main table). Have the ID column (unique identifier) in both tables to keep the records together. Then I send only the main table for cleansing and the commas in the memo can no longer work havoc.

I have an idea of how to create the memo table: make a copy of the main table and then delete all columns except ID and the two memo columns.

But then I have to link the two tables (I do not know how to do that); where do I start.

I must also ensure that when new records are created (now usually through a form), both tables are expanded. And I must get information from both tables into one form.

At present I do not even know where to start, except for creating the Memo table by copying it and deleting certain columns.

I have a good book (John Viescas: Running MS Access 2000), but it is huge, and the problem is urgent (it stops our tiny company from marketing). I have no time to study the whole book to find what I need in this case. A chapter or page reference would be very useful.

Or some Tutorial on the web that deals with my particular task.

Thanks for your help.

Adrian

View 4 Replies View Related

Main Table Linked To Several Sub-tables - Help!

Sep 2, 2007

Dear All

Since last week I am working on a Database which I will use for my company. To make a long story short, I didn't find any appropiate softwares nor examples on the internet, hence, with my some knowledge in Access, I am trying to make this "to be" useful tool for my self.

Short brief on the project:
This is going to be used for a trading company to register:
- Suppliers
-- Products

- Customers
-- Inquiries
-- Orders
-- Offers

*Relations:
- Suppliers can have one or many products
- Customers can have one or many Orders / Inquiries / Offers

Problems:
(I have tried many different ways, but going nowhere)

1) The "Customers" table have 3 tables (Orders/Inquiries/Offers) linked to it - and all are based on the primary key "CustomerId". --> How can I make a form to enter these data linked?

2) Under "Orders" I want to select supplier from the Supplier table and Product from the Product table -- How?

I know this is a lot of info and probably too vague, but if someone could assist me with a few problems - then I would really really appreciate it and compensate somehow.

Looking forward for your help.

Best regards

View 1 Replies View Related

Tables :: Copying A Table From One Linked DB To Another

Dec 3, 2013

I am looking to copy one exceptionally large table to another. I can use VBA to copy the entire Report2013.accdb to Report.accdb while compacting at the same time. This is very fast and works well. However once it's copied I need to rename the table tblReport2013 to tblReport. None of these table are in the accdb that I am running the scripts from FrontEnd.accdb. I am working very hard to keep the data tables under the 2 GB limit, which is why linking and keeping the data separate is necessary. There is the chance that Report2013 will be on the network while tblReport will be local to the user, and may or may not be a subset of the Report2013.

I have considered a number of options:
DoCmd.Rename - I can't seem to tell it a database location

I could try
docmd.copyobject - and see if it keeps the file size the same or smaller then the original.

I could just write the sql statement and copy the data that way, and compact the table afterwards. The trouble with doing the transfer that way is hitting the 2GB limit, before I can compact/compress the newly imported data.It just seems odd to have to find another solution when all I really want to to rename a table and ensure the new new is still linked as a separate table.

View 1 Replies View Related

Putting Linked Tables Into One Table?

Sep 17, 2013

I have multiple tables that are linked to excel. I am creating a product selection tool to make it easy to find the products contained all these linked tables. They are necessary as they contain pricing data and information necessary to be kept in excel which is regularly updated.

Is there a way to create one table containing data from all these linked tables? I tried using an append query but realise that when the linked tables are updated the table containing all the data wont be?

View 3 Replies View Related

Replacing 'Name' With 'ID' Taken From Another Table

Dec 19, 2007

I have a main table which contains data on Oilfields. This is set up with an auto number for ID and a name of each oil field. I have other tables which contain things such as Pipelines, Wells and Platforms, which are linked back the the main table.

The problem is that the database was given to me with the links being between the Oilfield_Name, and not using the Oilfield_ID (which is not present in the 'satellite' tables). How can i add the oilfield_ID column to the 'satellite' tables so i can link them properly?! (i can obvioulsy physically add an 'Oilfield_ID' column to the 'satellite field', but how do i populate it with all the correct IDs from the main table, to suit what is in the 'Name' column of the 'satellite' field- does that make sense?). I suppose I need to replace all of the Names with the IDs?

This has been giving me such a headache. The Oilfields table has 2500ish records, with as many as 1200 in the other tables linked to it.

View 7 Replies View Related

Linked Tables Not Updating In Junction Table

Nov 20, 2004

Hi, I have the following structure:

Products 1-M ORDER DETAILS M-1 ORDERS M-1 CUSTOMERS

I have ORDER DETAILS set as a junction table so that many products can be recorded within one order. All is good apart from when i go into ORDERS and create a new order. I click the subform which links to the ORDERDETAILS. I then pick a product number(look up from products table). The problem is this: In the ORDER DETAILS I want to display the unit price of this product simply by picking the product id.

Eventually this would form the basis of an order form where I can pick Product Id and have it display unit price.

Any ideas on this one, I'm sure its quite simple!!

Thanks in advance

View 1 Replies View Related

Do Tables Have To Be Linked To Do A Multiple Table Query?

Sep 13, 2006

Please could you advise me if tables have to be linked in order to perform a query on multiple tables? For example searching for a date and matching records on more than one table at the same time.

View 1 Replies View Related

Tables :: How To Check That Linked Table Exists

Apr 16, 2013

Background: In my Access FE, I have created a "linked table" to a file on our AS400 database. I know I can check the MSysObjects table for the linked table name, but sometimes the file actually does not exist on the AS400.

The file can be in one of three states.File exists with data.

File exists, but is empty.

File doesn't exist.

Question: What is the best way to determine the status of this linked table (file)?

View 1 Replies View Related

Tables :: Changing Linked Table Names

Mar 3, 2015

I need to update the names of my ODBC linked tables in my Access database, how can I do this without causing issues with my queries/reports?The current linked tables are to a SQL View on a database called mcsrm_live, and called e.g. vwDamagesReportNew

The new SQL views that I need to link to are identical in structure and content and on the same SQL server but different database - forkdw and are called e.g vw_R_Damages

Is there a straightforward process to do this without affecting the queries and reports in my Access db?

View 2 Replies View Related

Tables :: Text Field On Linked Table

Nov 12, 2014

We have a database (Access 2007) with several linked tables to an MS-SQL 2008 instance. All the text fields that I have issue with are nvarchar(255) on MS-SQL. The odd thing it will not allow a full 255 characters to be entered into the field. It will fail to save unless the number of characters is about 238 or 239 characters (not sure of the exact number of characters). It shows the field as a text and field size of 255 in Access .

View 2 Replies View Related

Tables :: Locate DSN File For Linked Table

Feb 18, 2014

I have a table that was linked from a SQL Server with a file DSN. It was linked years ago so now I want to locate that specific DSN file for that specific table if possible.

View 3 Replies View Related

Tables :: Sharepoint Linked Table Uneditable

Aug 27, 2013

I'm just starting out to learn SharePoint, which I utterly hate thus far but anyway. So I have successfully linked to the sharepoint list in my DB, but I cannot edit any values for some reason. I can edit them in sharepoint and both systems update, but when I type in ANY box in access I get "Invalid arguement" error.... also note the new record button near the record navigators is greyed out so I can't add a record either.

I noticed that my library user group has URL... set to Read while all others are set to full control... is this the cause or something else?

View 1 Replies View Related

Tables :: SQL Creates Linked Table In Front End

Dec 28, 2014

I have a frontend and a backend database. As usual i keep the tables in the backend. Now I have some tables which need to be emptied and then refilled. I empty the table using the code

Code:
DoCmd.RunSQL "DELETE * FROM TransNMTbl;"

then I fill in the table using

Code:
DoCmd.RunSQL "INSERT INTO TransNMTbl SELECT * FROM TransTbl;"

The code runs fine. The problem is that the linked table is not used and the sql statement creates another TransNMTbl table in the front end and puts the data there. Bu I need the table to be in backend.

View 7 Replies View Related

Tables :: Show Total Of Linked Table

Feb 22, 2013

Access 2010 ... I have 2 tables. One with base information second one is linked with multiple results each having a price. On table one i see the + sign when i click i can see the linked second table. Can i get a total amount of the price on table 2 on table one?

IE:
Table 1:
Trans ID - Seller - Quantity - Lot Cost - Parts Cost<-- the one i need total for.
123 - joe - 3 - $100 - $20 <-- the total of the 2 linked parts (Keyboard, Mouse)

Table 2:
ID - Trans ID - Part - Cost
1 - 123 - Keyboard - $10
2 - 123 - Mouse - $10

View 11 Replies View Related

Tables :: Appending Data To A Linked Table?

Feb 6, 2014

I have a table in MS Access 2010 that is a link to an external data file in .csv format. I assumed that it was not possible to append data to a linked table until recently. I appended 3 records to the linked table and discovered that the 3 records were appended to the table and the external data file it was linked to.

What am I missing ?

View 8 Replies View Related

Replacing Cell Value In A Table

Aug 1, 2007

OK, here is my situation. I have an access database which is updated automatically every night with new data. My companies solution to this is each morning, the entire database is downloaded to my computer to be used by another application.

In one of the tables, there is a field that doesn't work for my purposes, so each day I have to manually open the table, and change the contents of that field for every record. For example, lets say I have the following table:

Field1 Field2 Field3 Field4
Rec1 Wigets Faucet Model1A
Rec2 Wigets Faucet Model1B
Rec3 Wigets Sink Model1A
Rec4 Wigets Sink Model1B
Rec5 Wigets Toilet Model1A

Each day I manually change Field2 so it reads "Total" and whatever is in Field2:

Field1 Field2 Field3 Field4
Rec1 Total Faucets Faucet Model1A
Rec2 Total Faucets Faucet Model1B
Rec3 Total Sinks Sink Model1A
Rec4 Total Sinks Sink Model1B
Rec5 Total Toilets Toilet Model1A

Each morning when I receive the new database download, they all go back to widgets.

Is there a macro or module I can create to automatically look at Field3, and then assign a new value to Field2 based on Field3's value?

Any help would be appreciated!!!!

View 3 Replies View Related

One Primary Key In One Table Linked To Two Foreign Keys In Two Different Tables!!!

Sep 22, 2007

Hi there,

I am trying to model my database to create relationships between different tables in my database. During the process of doing so I ended up having one primary key in table A linked with to foreign keys in two different tables ( table B & table C) and both of those two table are junction tables to break out many to many between many other tables

Now for some reason!!! I feel that there is something wrong with my logic mapping and modeling of the relationships between tables due the fact of having one primary key linked to two foreign keys in two different tables :(

Is my intuition is right? should such case be considered as indicative of wrong modeling of relationships between tables in a single database
And if so what is the disadvantages of that link (talking down the road) when the database if fully populated? :confused:

By the way I am new member and new to database, so please take it easy on me :o

Many thanks

View 2 Replies View Related

Tables :: Finding Specific Record In A Linked Table

Jun 19, 2013

From what I have read, I understand you can't use the seek command on a recordset from a linked table from another database. Is that true? If so, what is the alternative to find a specific record in the table using an indexed field?

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved