Problem with make table query

rowk

Board Regular
Joined
Aug 11, 2002
Messages
72
Hi

i'm trying to run a make table query - when i run it as a select query it returns all the data - however when i run it as a make table query it gives the error invalid argument. I ran the same query in SQL: and basically got the same error. Any ideas??

Thanks

Row
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Here's the SQL,

thanks

rowk

SELECT SERIALNUM AS Expr1, MAX(INVNUMBER) AS Expr2, MAX(ITEM) AS Expr3, MAX(CUSTOMER) AS Expr4, MAX(BILNAME) AS Expr5, MAX(CODETERR)
AS Expr6, MAX(INVDATE) AS Expr7, MAX(CATEGORY) AS Expr8
INTO SerialsFinalPCards
FROM Serials_PCARDS
GROUP BY SERIALNUM
 
Upvote 0
rowk,

What is the Max() function supposed to do in this instance? I don't understand what Max(Customer) does, for example.

Also, what are the data types of the fields (just for curiousity's sake).

thanks
 
Upvote 0
hi there,

the problem with the master table is that some records have been duplicated but have different customer numbers...so basically what i wanted to do was to group the results by serial number and then allocate the max (last) customer number etc.
does that make sense?
 
Upvote 0
Hmm...

Not sure what's happening there. Do you think you could post some of your data? Click on the link below to download an add-in that will help you do this. Also, if you could base this on a query that is a simple select query of your table, but sorts the ID field (the one you are grouping on), that would be great. Maybe 25 rows? If the table is already sorted, then just post data from the table.

If you don't care to post the data from the add-in, you can try another way (or you can not post at all! :biggrin:).

Click Here
This message was edited by Russell Hauf on 2003-01-17 12:14
 
Upvote 0

Forum statistics

Threads
1,221,510
Messages
6,160,230
Members
451,632
Latest member
purpleflower26

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top