473,405 Members | 2,344 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Importing from excel to access 2002

7
hi, im trying to do an update query that will take 2fields from 3 excel tables through a union query, BulkUpdate then update an access table, Tools, with the new information. I have done a similar process but with an add query which works fine, this one is just goin to update old information if it already exists. Here is my sql code for the queries:

Importing from excel, BulkImport union query-
SELECT [Dies].[Customer Serial#] AS [Tool Serial], [Dies].[(inches) I#D# Size] AS [Size]
FROM [Dies]
WHERE (([Dies].[Customer Serial#]) Is Not Null)
UNION SELECT [Punches].[Serial number], [Punches].[c'bore dia#]
FROM [Punches]
WHERE (( [Punches].[Serial number]) Is Not Null)
UNION SELECT [Redraws].[Serial number], [Redraws].[Required O#D# Size]
FROM [Redraws]
WHERE (([Redraws].[Serial number]) Is Not Null);

Query to update access table, tools, to new information from BulkInput Query-
UPDATE DISTINCTROW [Tools v3] RIGHT JOIN [Bulk Import] ON [Tools v3].Serial = [Bulk Import].[Tool Serial] SET [Tools v3].Serial = [Bulk Import].[Tool Serial], [Tools v3].[Size] = [Bulk Import].Size, [Tools v3].LastUpdate = Now(), [Tools v3].Status = "In", [Tools v3].Regrinder = Forms![Bulk Import]!Regrinder
WHERE ((([Tools v3].Serial) Is Not Null And ([Tools v3].Serial)=[Bulk Import].[Tool Serial]) AND (([Bulk Import].[Tool Serial]) Is Not Null));

What i am having trouble with is i get an error that says: Operation must use updateable query. Error 3073. I have searched the net and found that a lot of people have the permissions issue or ODODB driver issue but i have neither. Can Someone give any advice to what might be the cause? Thanks in advance.
Jul 24 '07 #1
1 1830
FishVal
2,653 Expert 2GB
hi, im trying to do an update query that will take 2fields from 3 excel tables through a union query, BulkUpdate then update an access table, Tools, with the new information. I have done a similar process but with an add query which works fine, this one is just goin to update old information if it already exists. Here is my sql code for the queries:

Importing from excel, BulkImport union query-
SELECT [Dies].[Customer Serial#] AS [Tool Serial], [Dies].[(inches) I#D# Size] AS [Size]
FROM [Dies]
WHERE (([Dies].[Customer Serial#]) Is Not Null)
UNION SELECT [Punches].[Serial number], [Punches].[c'bore dia#]
FROM [Punches]
WHERE (( [Punches].[Serial number]) Is Not Null)
UNION SELECT [Redraws].[Serial number], [Redraws].[Required O#D# Size]
FROM [Redraws]
WHERE (([Redraws].[Serial number]) Is Not Null);

Query to update access table, tools, to new information from BulkInput Query-
UPDATE DISTINCTROW [Tools v3] RIGHT JOIN [Bulk Import] ON [Tools v3].Serial = [Bulk Import].[Tool Serial] SET [Tools v3].Serial = [Bulk Import].[Tool Serial], [Tools v3].[Size] = [Bulk Import].Size, [Tools v3].LastUpdate = Now(), [Tools v3].Status = "In", [Tools v3].Regrinder = Forms![Bulk Import]!Regrinder
WHERE ((([Tools v3].Serial) Is Not Null And ([Tools v3].Serial)=[Bulk Import].[Tool Serial]) AND (([Bulk Import].[Tool Serial]) Is Not Null));

What i am having trouble with is i get an error that says: Operation must use updateable query. Error 3073. I have searched the net and found that a lot of people have the permissions issue or ODODB driver issue but i have neither. Can Someone give any advice to what might be the cause? Thanks in advance.
Hi.

I'm not sure whether the query you try to update is indeed updatable. Run it as SELECT query and check this.
Expand|Select|Wrap|Line Numbers
  1. SELECT DISTINCTROW * FROM [Tools v3] RIGHT JOIN [Bulk Import] ON [Tools v3].Serial = [Bulk Import].[Tool Serial];
  2.  
Jul 24 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: postings | last post by:
Hi - can you help please? Please review the following straightforward code which works fine with ordinary XML files. ---------------------------------------------------------------- Dim...
1
by: Emilio | last post by:
(MS Access 2002) Hello, I'm working with some big Census (PUMS) files, and I run into a peculiar problem once the data field exceeds five integers. I'll explain every step, since I am doing it in...
9
by: Edward S | last post by:
I budget for a Project in an Excel sheet as illustrated below. The months below are usually a 2 year period i.e. 24 months, though it could be over 24 months depending upon a Project. I then...
7
by: Darren | last post by:
I have been attempting to create a reservation planning form in excel that imports Data from an Access database and inserts that information automaticly into the correct spreed sheet and the...
8
by: harry | last post by:
Hi Folks: I'm trying to do something that looks simple, but I can't make it work right. It's Access 2000 on a Win2000 computer. I create a database with 5 columbs. The data I need to import...
1
by: maztoo | last post by:
Hi I've seen this problem posted on this group in the past but I am yet to find a solution to the problem. I'm trying to import a simple spreadsheet into Access but am getting a message saying...
10
by: Steve | last post by:
I am trying to create a DLL in Visual Studio 2005-Visual Basic that contains custom functions. I believe I need to use COM interop to allow VBA code in Excel 2002 to access it. I've studied...
5
by: hharriel | last post by:
Hi, I am hoping someone can help me with an issue I am having with excel and ms access. I have collected data (which are in individual excel files) from 49 different school districts. All...
9
by: metalheadstorm | last post by:
This is Urgent! :) Ok im using Ms Access (2002) as the backend to a program i have developted in vb6, this is for a college project and im currently at the business that this poposed program is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.