A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

UPDATE All Columns except one



 
 
Thread Tools Display Modes
  #1  
Old May 6th, 2010, 09:34 AM posted to microsoft.public.access.queries
JensB[_4_]
external usenet poster
 
Posts: 7
Default UPDATE All Columns except one

Hi
I got at table with 40 Columns (Pricelist).
I am not able to use the wildcard Pricelist.*
Is there a work arround to avoid mentioning all 40 column names in the SQL
sentence

Regards
/JensB


  #2  
Old May 6th, 2010, 01:54 PM posted to microsoft.public.access.queries
John Spencer
external usenet poster
 
Posts: 7,815
Default UPDATE All Columns except one

No, you must list the columns.

In query design view, you can select all the fields at once and add them to
the query. Double click on the table title to select all the fields. Then
click on one of the fields and drag them all into the grid. You can then get
rid of the one field you don't want to change.

40 columns for a price list sounds wrong. I would suspect that your design
for this table is not normalized.

John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County

JensB wrote:
Hi
I got at table with 40 Columns (Pricelist).
I am not able to use the wildcard Pricelist.*
Is there a work arround to avoid mentioning all 40 column names in the SQL
sentence

Regards
/JensB


  #3  
Old May 6th, 2010, 03:57 PM posted to microsoft.public.access.queries
JensB[_4_]
external usenet poster
 
Posts: 7
Default UPDATE All Columns except one

John .Thx for your answer.
Just to clarify about the pricelist issue.
The pricelist contain prices for different products/quallities in relation
to the two parameters (Speed, Width), something like this
---- Prices -----------
Speed Width Suppl1 Supl2 Supl3....
200 1600 3000
200 1800 4500
400 1600 3900
400 1800 5500
600 1600 5100
600 1800 6400

If there is a smarter way, I would like to know.

/JensB

"John Spencer" wrote in message
...
No, you must list the columns.

In query design view, you can select all the fields at once and add them
to the query. Double click on the table title to select all the fields.
Then click on one of the fields and drag them all into the grid. You can
then get rid of the one field you don't want to change.

40 columns for a price list sounds wrong. I would suspect that your
design for this table is not normalized.

John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County

JensB wrote:
Hi
I got at table with 40 Columns (Pricelist).
I am not able to use the wildcard Pricelist.*
Is there a work arround to avoid mentioning all 40 column names in the
SQL sentence

Regards
/JensB



  #4  
Old May 6th, 2010, 04:44 PM posted to microsoft.public.access.queries
John Spencer
external usenet poster
 
Posts: 7,815
Default UPDATE All Columns except one

A better structure would be along the lines of a table with
Speed
Width
Supplier (Or whatever Supl1 represents)
Price

So you would end up with multiple rows for each row you now have. You could
then get the maximum price, minimum price, average price easily with a query.

You could with a little more complexity in the query return the "supplier?"
that had the maximum or minimum price.

You could even display the data in the same manner as you currently see it
using a crosstab query.

John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County

JensB wrote:
John .Thx for your answer.
Just to clarify about the pricelist issue.
The pricelist contain prices for different products/quallities in relation
to the two parameters (Speed, Width), something like this
---- Prices -----------
Speed Width Suppl1 Supl2 Supl3....
200 1600 3000
200 1800 4500
400 1600 3900
400 1800 5500
600 1600 5100
600 1800 6400

If there is a smarter way, I would like to know.

/JensB

"John Spencer" wrote in message
...
No, you must list the columns.

In query design view, you can select all the fields at once and add them
to the query. Double click on the table title to select all the fields.
Then click on one of the fields and drag them all into the grid. You can
then get rid of the one field you don't want to change.

40 columns for a price list sounds wrong. I would suspect that your
design for this table is not normalized.

John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County

JensB wrote:
Hi
I got at table with 40 Columns (Pricelist).
I am not able to use the wildcard Pricelist.*
Is there a work arround to avoid mentioning all 40 column names in the
SQL sentence

Regards
/JensB



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:49 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.