Adding feild

dkbrostyle

New Member
Joined
Mar 16, 2002
Messages
28
Hi i would like to use a query to add a field. What i have done is designed two tables one is a supplement table and the other is a pricing table. The pricing table has the prices which can be changed by my end user. The supplement table which is an upgrade in breakfast, would define the number of each item would need to be upgraded.

What i have tried to do is design a query which adds the prices together than a total query which would add all the prices together, but the problem i faced was that i wanted to hide the pricing column and i insert a new column to add them up together. But this did not work at all.

I'm confused and i would like some help with this coursework deadline is for wednesday.

Thank you very much for your help and time.
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Hi dkbrostyle

To add a Field (Column) to a database you use the ALTER TABLE statement, like so:

Code:
ALTER TABLE <TableNameHere> ADD <FieldNameHere> {DataType};

where {DataType} is a valid data type eg. Text, Short, Byte, Memo, Boolean etc, etc, etc. If the datatype is a number or text etc. then add a size or Access will add a default size that can be huge (in the case of Text it's 255).


Remember to back up your database before trying this, just in case.....
Try that.

anvil19
:eek:
 
Upvote 0

Forum statistics

Threads
1,221,680
Messages
6,161,251
Members
451,692
Latest member
jmaskin

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