Repeating Input in all the Query records

Jass7869

Registered User.
Local time
Yesterday, 23:26
Joined
Aug 12, 2014
Messages
96
I have a query that I am running based off two tables. To one of the tables I add a few blank fields as my boss wants me to calculate the accounting portion. I work at an budgets unit but as IT. Anyways, I ran the query and opened it in a form for the Analyst to input their numbers. So every other field is calculated. A + B = C. I have something in field A and I am putting the input in field B to get teh results in field C. So that's say that I queried for a certain analyst and I get four records. When I input anything into first record the input is in all the records for field B. This is where I am having a problem. I only want to input into the the correrdponding record and not all the records I query. Any ideas?
 
Then you need to bound the input control (control B) to a field, (and the field need to be in a table).
 
But then if I bound it to a field I can't enter anything..please help
 
Post a stripped version of your database with some sample data, (zip it) + name of the form in which you've the problem and ofcause the name of the fields which are involved in the calculation.
 
Hello JHB,

First of all how do I do that ...and I have one table the is linked to ODBC...you will get errors
 
Hello JHB,

First of all how do I do that ...and I have one table the is linked to ODBC...you will get errors
Take a backup/copy of your database to work on. Copy the linked table into your database.
Drop connection to the linked table and rename the the copied table to the name of the linked table.
Remove/delete all queries/tables/forms/module that isn't necessary for running the form in which you've problem.
Then zip and attached it to here.
A question: Do you need to save the input in field B (+ the calculated value)?
 
It's not allowing me to upload my DB and yes I need to save Field B input into the first orginal table (One of the two tables being used for the query). I know I have a problem with my query..as once I run it I try to edit and it's not allowing any edits:banghead:
 
You didn't mention the name of the form in which you've the problem, either the name of the fields/controls which are involved in the calculation.
 
Hello JHB,

The field that I am having issues with is BC1_Change..1-4 even though I don't have all of them on the form yet...working with one at a time.

Please let me know what you think...I still have not been able to figure out why I can't enter data into those fields. Name of the frm is Final_frm
 
Because you query is in a way wrong constructed, (the query used in form Final_frm), it is repeating the same data!
You don't have any relationship between the tables - dbo_tblOrgLook_master and Final_Table
 
Sorry I have been out with a cracked Kneecap...So I set my relationship after creating OrgLookdId in both tables..One to many Relationship...will it work??
 
Also is having a join in the query the same as a relationship?
 
How do I also get rid of the repeating data. I just added a dropdown menu and no matter what I choose..that choice is the same in all the queried records
 
The problem you've is that value for the linked fields aren't unique.
Let's take some sample.
As you see, both record with the ID 1275 and 1276, (Final_Table), points to the same records with the OrgLookId 705 and 707, until you get that in place, (only one record in the main table point to one or more records in the sub table), you're not able to do what you want.

attachment.php
 

Attachments

  • Unik.jpg
    Unik.jpg
    82.7 KB · Views: 158
So ..I don't see anything that is unique in either table. What do I do at this point?
 
So ..I don't see anything that is unique in either table. What do I do at this point?
Sorry - I can't tell you, then you are the best to decide what you want now!
Because you know from where the data are coming and why a good part of same data are stored in two tables.
The basics of databases is only a save data only in one field in one table and not like what you have here, the same data to multiple tables.

But you can't link tables together and edit/add data to them if MS-Access isn't able to put the data in a unique record, at least not in the way you want it.
 
Hello,

I told my boss the data should be in one table for uniquiness. But the OrgLook table is used in several other DB and she wants to be able to save the user input into the final table. This DB is getting to be a headache and I am not an expert.
 
Hello JHB,

How would I get OrgLookID into my other table and how would they correlate..
 
Sorry - I can't guide you, because I don't know from where the data are coming and why they are organized like they are!
 

Users who are viewing this thread

Back
Top Bottom