473,500 Members | 1,943 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access 2007: Can Select query successfully, create table gives

7 New Member
The data I am using was imported from Excel. The tables were then merged into one large table (3 million + records) and so cannot be re-exported into excel for modification.
I am trying to map the transactional data back to a list of account numbers I have. (By matching the fields branch to Neab (Branch), and customer number (Pwanx) to Customer Number (Nean).
This works fine but as soon as I add the suffix (field Pwasx), I get (Error 3049).
It works with the suffix field when doing a select statement. But when I do a make table, I get the error message.
Also, I tried exporting the results of the Select statement and then re-importing them but I get an error message.
the Suffix field is saved as text as are all other fields with the exception of the Amount fields.
The last (very time consuming) solution I have is to try to import from Excel, recombine, and try again after modifying the suffix field (I am not sure this will resolve it though and am hoping there is a more direct solution).

Here's the SQL:
Expand|Select|Wrap|Line Numbers
  1.  SELECT [All Transactions].[Customer Name], [All Transactions].Branch, [Branch and nean combos].[acca good], [All Transactions].Currency, [All Transactions].Amount, [All Transactions].[Amount USD], [All Transactions].[Depositor Name], [All Transactions].[D TYPE], [All Transactions].[W TYPE], [All Transactions].RATE, [All Transactions].DATE, [All Transactions].SEGMENT, [All Transactions].[TRANS CONT], [All Transactions].Reference, [All Transactions].[BENEFICIARY/ORIGINATOR], [All Transactions].[TYPEOFTRANSACTION(REPORT NAME)], [All Transactions].Purpose, [All Transactions].BBI
  2. FROM [Branch and nean combos] INNER JOIN [All Transactions] ON ([Branch and nean combos].Neab = [All Transactions].Branch) AND ([Branch and nean combos].Nean = [All Transactions].Pwanx);
  3.  
I could also try to write some VB script to copy the records one by one from the Select query results into a new table but I'm not entirely sure how to do that.


Thanks
Jan 3 '08 #1
3 3313
jaxjagfan
254 Recognized Expert Contributor
The data I am using was imported from Excel. The tables were then merged into one large table (3 million + records) and so cannot be re-exported into excel for modification.
I am trying to map the transactional data back to a list of account numbers I have. (By matching the fields branch to Neab (Branch), and customer number (Pwanx) to Customer Number (Nean).
This works fine but as soon as I add the suffix (field Pwasx), I get (Error 3049).
It works with the suffix field when doing a select statement. But when I do a make table, I get the error message.
Also, I tried exporting the results of the Select statement and then re-importing them but I get an error message.
the Suffix field is saved as text as are all other fields with the exception of the Amount fields.
The last (very time consuming) solution I have is to try to import from Excel, recombine, and try again after modifying the suffix field (I am not sure this will resolve it though and am hoping there is a more direct solution).

Here's the SQL:
Expand|Select|Wrap|Line Numbers
  1.  SELECT [All Transactions].[Customer Name], [All Transactions].Branch, [Branch and nean combos].[acca good], [All Transactions].Currency, [All Transactions].Amount, [All Transactions].[Amount USD], [All Transactions].[Depositor Name], [All Transactions].[D TYPE], [All Transactions].[W TYPE], [All Transactions].RATE, [All Transactions].DATE, [All Transactions].SEGMENT, [All Transactions].[TRANS CONT], [All Transactions].Reference, [All Transactions].[BENEFICIARY/ORIGINATOR], [All Transactions].[TYPEOFTRANSACTION(REPORT NAME)], [All Transactions].Purpose, [All Transactions].BBI
  2. FROM [Branch and nean combos] INNER JOIN [All Transactions] ON ([Branch and nean combos].Neab = [All Transactions].Branch) AND ([Branch and nean combos].Nean = [All Transactions].Pwanx);
  3.  
I could also try to write some VB script to copy the records one by one from the Select query results into a new table but I'm not entirely sure how to do that.


Thanks
Are [Branch and nean combos].Nean and [All Transactions].Pwanx both of the same data type?

When working with such large data sets as you are importing try a different approach of appending to a table instead of MakeTable (you will probably find this to be faster). Take a small sample of the import data and use it initially to make a table. Once table is created open it up in design view to verify data types and sizes. You would then create a query or SQL to delete all data from this table and then append your import.

Excel is notorius for changing your data types - it looks at the first row and assumes the rest of the column is of the same data type. It may designate a column as text this time and numeric the next.

Some use Excel to mine data from SAP, JDEdwards, etc. Whether or not this is the case, I would save the speadsheet as a delimited text file, create an import specification, and import the text file. The import specification will give you more control over field names and data types.
Jan 3 '08 #2
IntelliOfficer
7 New Member
Jax,
thanks for the quick response.
All of the fields in all tables are of the same data type (text) with the exception of (Amount) and (Amount USD). All the data was set properly in excel (I emphasize.. IN excel, not By excel).
As for the speed, work was nice enough to provide me with a super fast PC (with 4GB RAM) for just such tasks.
All showing off aside though, I tried the approach you suggested. The append doesn't work.
I also tried exporting the Select results as Tab delimited and re-importing them but to no avail.
Not quite sure what's up with it but I really have tried almost everything i can think of.
The only thing left is to try and re-import (after triple checking the data in Excel) and then try it again.
What really bugs me is that Select works, but not make table.
Very very strange.
Hope this information helps you help me.
Thanks again
Jan 6 '08 #3
IntelliOfficer
7 New Member
Jax,
FYI - I went ahead and re-imported the data from Excel. It seems that there was one table (out of three) where the suffix was not properly formatted.
It works fine now but I still need to occasionally shut Access down and start it up again for queries to work. Not sure why that is.
Thanks very much for your help and all your advice.
Jan 15 '08 #4

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

Similar topics

0
4469
by: ImraneA | last post by:
Hi there I had pleasure of upsizing Access v97 db to Access v2K/SQL 2K. Wish to provide some knowledge gained back to community - hopefully help others. 1.Question how do you test stored...
7
35661
by: Bob | last post by:
Currently I am using this statement to translate 3 fields in my db thru Visual Basic. I import the data from one table to another then call the IFF statements and the NewDate to translate the...
2
1661
by: abefuzzleduser2 | last post by:
I am using sql 2000 (mdb) with linked tables on SQL 2000. I need to use views to limit users records, instead of direct table access. I setup a single talbe view in sql and tested update and...
13
3956
by: royaltiger | last post by:
I am trying to copy the inventory database in Building Access Applications by John L Viescas but when i try to run the database i get an error in the orders form when i click on the allocate...
4
6363
by: alexandre.brisebois | last post by:
Hi, I am using access 2003, I would like to know if there is an option to reorganize the tables in a maner that is readable, as we can do in sql sever 2000 or 2005. I have been given a database...
6
7781
by: Kc-Mass | last post by:
In a standard Ascii table a dash or hyphen is decimal 45. A period or dot is decimal 46. If I sort a table or recordset of mixed character string ascending in Access, those strings beginning with...
2
2185
by: jafastinger | last post by:
I have a large union. If I break it into its individual parts they all run quick. The longest is the last select it takes 2 minutes to fetch all rows. When I run the query below it does not...
0
1270
by: fiff | last post by:
Hi, I need help with query. I have access log table something like this: session_id (int) | user (varchar) | login_time (datetime) | logout_time (datetime) 1 | JOHN | 2007-03-02 15:32:01 |...
2
19393
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
7136
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,...
1
6906
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7397
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
5490
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
4611
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3110
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3106
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
672
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
316
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.