UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Update Query    
 
   
rbush
post Feb 23 2012, 09:09 AM
Post #1

UtterAccess Enthusiast
Posts: 56



Hi,

I'm new at creating an update query and not sure if that is even what I need to do. One of our departments has a database that includes fund numbers for each og their accounts. Those numbers are changing, and the database already has several entries since the beginning of the year. The main table is linked to mutiple tables and forms. They would like all the fund numbers to be changed. The fund names will remain the same. I made a beginners attempt at an update query by adding a new column to the main table called "Budget_Line_Number_New" and thought we could enter all the new numbers there, then update using that column. I get a message about key violations, lock violations, and rule violations. I don't have any idea how to figure that out. Can someone lead me in the right direction?

Thank you
Go to the top of the page
 
+
Bob G
post Feb 23 2012, 09:15 AM
Post #2

UtterAccess VIP
Posts: 8,104
From: CT



They want to change the Fund Numbers already used? wouldn't that make any type of history obsolete? OR, do they want to now use different type of fund numbers? perhaps they used ones last year that had something like 11-##### and now they want to use 12-#### ?
Go to the top of the page
 
+
rbush
post Feb 23 2012, 09:21 AM
Post #3

UtterAccess Enthusiast
Posts: 56



Yes, they will be replacing all the entries for this year. They will be replacing the first 4 set of numbers, and the rest of the number will remain the same.
Go to the top of the page
 
+
Bob G
post Feb 23 2012, 09:27 AM
Post #4

UtterAccess VIP
Posts: 8,104
From: CT



so they dont want to change the existing records only the new records ??
Go to the top of the page
 
+
rbush
post Feb 23 2012, 09:32 AM
Post #5

UtterAccess Enthusiast
Posts: 56



We can change all the records. There is no need for keeping the old records with the old numbers.
Go to the top of the page
 
+
Bob G
post Feb 23 2012, 09:56 AM
Post #6

UtterAccess VIP
Posts: 8,104
From: CT



something doesn't sound quite right to me, but it is your data and your business.

I am reluctant to provide an answer unfortunately as I do not grasp the overall concept of your design.

Others will be joining in and perhaps one of them will understand better.
Go to the top of the page
 
+
rbush
post Feb 23 2012, 01:33 PM
Post #7

UtterAccess Enthusiast
Posts: 56



Bob,

Thank you so much for trying to help me with this. I was able to go in and remove the joins in the relationship table, do a find and replace in all the affected tables, then put the joins back in place. This worked for what they needed.

Thanks again.
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 18th May 2013 - 04:38 PM