I have an Access file with one data table and several linked (read only) tables from a mainframe database. I run an Append Query to import certain data from the linked tables into my data table. Periodically the data in certain fields in the linked tables will change. I want to refresh my local data to reflect this. So I tried to write an Update Query, but it keeps telling me that "The Operations is not an updatable query". I assume this is because the linked tables are read only even though I am trying to update from the linked tables to my local data table. So I am not trying to modify the read only tables.
Assuming I am correct, what is the best way to accomplish my need to update certain fields in my data table with the information on the linked tables?
My membership database has worked fine until recently. Now I cannot save inserted data. On attempted saving "Update or CancelUpdate without AddNew or Edit" appears.
The problem. relates to 2 tables Member and Addresses. PK in the parent table Member is ID. In the Addresses Table the FK is ID. There is a One to One relation between the tables and Referential Integrity is set. I know 1 to 1 is not good but it worked fine in this small database.
Where the field contains "AB", I want to replace the data with say "AB - Alpha Beta". But I do not want to change any of the other data. So the outcome should look like:
AB - Alpha Beta, AC AB - Alpha Beta AC AB - Alpha Beta, AD AA, AB - Alpha Beta
I'd then go on to change AC to say "AC - Alpha Charlie".
I have a table that I need to update existing data and append new data. All of the new data is in the same file. Is there a way I can update and append at the same time?
Forgive me if this has been posted else where - but i am new to forums so ill try to pick it up quickly ok.
I gave an access 97 'menu' form called projects. When i click on the projects button, it opens up my projects form, and everything is fine and works ok.
On this projects form, I have a drop down showing all my contacts, so that i may select one to associate that person with that project on my projects form.
Here is the 64k question... if the contact is not in my drop down, i can click a button called edit, and it opens my contacts form where I can add a new contact. When I close the contacts form down, the projects form is now visible again. However my drop down menu does not show the new contact added. I even added a refresh button and still no joy.
I have a form call member. In the member form I had created a membership Id combine with several code which can shown in the form. But this is only shown and I need this combine memberID to be update into another field.
Anyone have better idea which I just need to add it into controlsource ?
i want to update data fields (time fields) in a table based on a number input by user (so it will search for record in table using the number and then update the relevant fields)....How can i do this am quiete confused there PLEASE DO HELP
I've got one table, let's call it "data", that has a set of data with a Measure Name, and the corresponding monthly data in columns. For example:
Measure Name Jan 2014 Feb 2014 Mar 2014 Calls Answered 10 15 25
I have a function that takes the data from the above format, and puts it in the following format:
Measure Name Period Score Calls Answered Jan 2014 10 Calls Answered Feb 2014 15 Calls Answered Mar 2014 25
Here's the function I'm using (I've left out a lot of the fields I'm really using just to make the example easier.
Function TransposeSLA() Dim rsMySet As DAO.Recordset Dim strSQL As String Dim i As Integer 'Open the original matrix-style dataset Set rsMySet = CurrentDb.OpenRecordset("SLA_Data")
[Code] .....
The function above puts the data in a new table called "Transposed" in the format I need. The user accomplishes this by clicking a "button" on a form. The button also deletes the existing table / records from Transposed. I now need to change it so that only NEW data from the "data" table is transposed by the function INTO the table "Transposed". The reason for this is that my client decided they want to do some additional data entry in the transposed table. As it is right now, they can't, because the table is deleted each time they click the button on the form to add new data.
I have a database it contains data more than 4 million line items but while i try to run macro or any query the database reaches the maximum limit of 2 gb , then the particular query not functioning and then i need to compact and repair. After compact and repair also the same issue is continuing.
Firstly, I am very much self-taught on access, so there are several gaping holes in my knowledge, and my database structure is probably not wonderful! I have been learning as I go along, so in the initial stages I have built in several problems which I am now discovering!
My db is designed to track suggestions - i have a table where the idea, progress etc is stored [tblIdeasBank]. This contains an 'originator' (person's name) which is linked to a second table, where the names are stored [tblPeople].
Originally I set up tblPeople with the Primary Key as FullName (e.g. Joe Bloggs) (guaranteed to be unique with the small number of people that would be involved), and a second field called InitialLastName (e.g. J Bloggs). It is this second field that is stored in the tblIdeasBank. Data verification came from the user having to select a name from a drop down box, so there is no actual 'relationship' between the tables. (Didn't realise how useful they were at the time!)
The db has been so successful :confused: that it is now going to be rolled out across the company, which gives me two problems. To populate all the names, I need to import them from Excel, where I will have FirstName and LastName. I have now realised that it would be more sensible to just store these, and create InitialLastName where needed. Also, I may well have duplicate names, so I need to create a unique ID, and a proper relationship. (Yes, I know I should have done that in the first place).
tblIdeasBank: .IdeaID (Primary Key) .Originator (stored as PersonID)
With a One-Many relationship from PersonID to Originator
Any ideas how I would go about doing this and changing the Originator for each idea from InitialLastName to the relevant PersonID number, without corrupting the data?
I have searched through Google and various groups, but cannot find a useful answer, so any pointers gratefully appreciated!
But field1's data type is Number and Field2 is Text. (Field1 is fed by a lookup table). Am I doomed to go through the 700 or so by hand, gurus, please?
I have two tables table1 his a master list of companies that I have already delt with table2 is a list of companies that I have delt with as well as new companies and I allow for multiple instances of company data to be in table2
table2 my have several records refering to "ABCD Inc" but table1 will only have it once
If new companies show up in table2 how can I get a mass copy of all the companies that are in table2 but not in table1 into table1?
I would like to run a query and then be able to edit that information. I want the data I change to be put into the table the info was gathered from. Right now when I edit the query data it only saves it there, not on the other table. I tried to do the copy to table but the original table was going to be erased and then written over. What should I do? thanks
I currently have a macro that imports data from a spreadsheet and then a query that adds the data into the main table.
But when I want to import new data it deletes the old data out of the table and inserts new data. How can I adjust the query so that it "updates" the new data into the table instead of deleting and then adding?
Another problem is empty records, is there a way of importing data where field 1 has data?
I have a problem.... How can I copy data from one column in a table to another colunm, with WHERE and UPDATE? And how can I find the data, which is the closest, for example using LIKE '%' UPDATE tag_info,tag_info_kilde SET tag_info.TAG_DESCRIPTION = [tag_info_kilde].[TAG_DESCRIPTION_KILDE] WHERE [tag_info].[TAG_NAME]=[tag_info_kilde].[TAG_NAME_KILDE];
This should be easy, but I have spent hours on it and can't find the answer. Can anyone see why the query 1qryMaintAssets does not allow a change to or an addition to the data??
Hi all, I'm new to Access programming so this could be very simple for some of you.
I have a table with field name: OrderStatus which has several values: Payment Requested Payment Received Order Shipped Completed
I currently change each status manually. But more often I need to change ALL order with status "Payment Received" into "Order Shipped" at once. It is kind of stupid for me to do this manually since it doesn't require individual customization.
If someone kindly tell me what should I do. I realize it will need a lil bit of script.
I have a form that student grades on. I use a listbox to pick the names. I also have a pop up form for me to enter new students that are not in the pop up "query" form. I can go to my form with the grades and hit a refresh button and the listbox is updated. I would like for my data to be requeried and up to date when I close the pop form. Any suggestion.
I've been thinking of this for days. I have a table field that contains SSN data. Unfortunately, during the data import from the legacy database, all the front "0"s had been truncated. The current DB SSN field is a text data type which can handle the "0"s at the front. The table has about 50000 records which unable to modify each individually. I need to modify the SSN data back to fixed length by adding "0"s at front. I think it will put too much effort to write a VB app to do this. I prefer to do this through the SQL. Dose anyone know how to do this? Thanks in advance.
I'm relatively new to MS Access (using MS Access 2013 but the db should work on 2010, too) and try to develop a database for an NGO I'm working in. [...].
However now I start to create forms and later reports for the actual user. The database will store information about clients and track consultations and assistance the NGO gives to them. There will be around 50.000 to 70.000 clients in the main table. Every client has a specific Individual ID and is member of a family which itself has another specific Group ID.
So now, I am almost done with forms (at least I want to believe that). But I ran into an issue I would love to have your comment and different approach on:
The Database I create is projected on another, significantly bigger database! The one I create is a kinda light version for other field offices with only the information they need to have, and additional tables for them to gather their own data and track their own activities. This being said, the light database needs to be updated every month once by the big (mother version). Both DBs cannot be connected!!!
So we will send to the field offices altogether 5 tables in one mdb-file every month. These 5 tables exist with the same structure ( name, field data-types, etc.) in the light version.
I now want to make an automatic update option (by pressing a key and select the "update-file"), i.e. based on the the respective Primary Key of every table the entry in the smaller DB should be updated!
Update for me means the following three things (Assume big DB is A, small DB is B):
1) If Primary Key (PK) exists in both tables of A and B, update the rest of the fields in B belonging to that key based on the specific record of A
2) If PK does not exist in A but in B, delete record from the database B (case: record was deleted in A after last update)
3) If PK does not exist in B but in A, add the record to database B (case: record was added to database A after last update)
I would like to show you what I already found in the internet on solving task 1) but I cannot post links due to my status.
Both links basically describe how to update one table by another in importing or linking the update-source table in the current DB, create a query with both tables, link the PKs of both and then using the Update To Criteria [UpdateSourceTable].[Field] for each field that I want to update.
But I wanted to ask before I implemented that if I should make a complete different approach since I also have 2) and 3) as tasks....
I have a series of data that start from 0 to 999. I have to save these data in text form in order to be able to update them to the form I need. I need these data to be in 3 digits vs number form. For instance, if the data is stored as 1, i want it to be updated it to 001. Is there any easy way to update the single digit and double digit numbers to be in the format mentioned above?
I have two tables that have a list of user info. One table has a status field. I want to update the status of users that is in table 1 but does not match any user in table 2 with "text". How would I do that? I do have an unmatch query of both tables.
I am a first time user of access. i am trying to create an Data Access Page which will list all entries in a table and then allow me to add, change and delete them. I have created the page using the wizard but it will not let me add, delete or update. i view all the entries at one time but that is all. the navigation toolbar shows up at the bottom but it is grayed out. any ideas on what i may be doing wrong?
I am relatively new to the use of VBA and ADO to append Oracle data to a Access Table. The code below was my first attempt and it doesn't work!!
Upon your review, you can see that there are quite a few calculated fields in the table which is generally considered to be a maintenance problem. I plan to update all fields within the table that ends with "Current."
Any insight as to what the problem could be? Is there a more efficient method to append/update data within the Access db? How would the module differ if I wanted to update the fields on the table that end with "Current?" Do I have too many calculated fields?
Sub ADO_AppendEncDetailNew()
Dim Rs As New ADODB.Recordset, connString As String Dim cn As New ADODB.Connection, sqlEncData As String