473,382 Members | 1,611 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,382 software developers and data experts.

Group Edit Help Please

I'm still relatively new to Access and I want to make a form that allows the user to edit a grouped field all at once (if this is possible?)?

For example, lets say there are 13 records in a table and in one column a the type is kept, either 1 or 2. For each type there is a price that changes. So I want the user to be able to select either 1 or 2 and edit the price and then on the one edit have all the records of that type change with the same one edit.

I have no idea how to do this! Please advise or reference places to get the information.

Thank you!
Jan 24 '07 #1
6 1382
ADezii
8,834 Expert 8TB
I'm still relatively new to Access and I want to make a form that allows the user to edit a grouped field all at once (if this is possible?)?

For example, lets say there are 13 records in a table and in one column a the type is kept, either 1 or 2. For each type there is a price that changes. So I want the user to be able to select either 1 or 2 and edit the price and then on the one edit have all the records of that type change with the same one edit.

I have no idea how to do this! Please advise or reference places to get the information.

Thank you!
What will simplify matters for you is an UPDATE Query(s). Assuming the [Type] Field is a Long Integer and the [Price] Field is of type Currency, the following Query will set the Price of all Records whose Type = 1 to $25.75. Hope this helps.
Expand|Select|Wrap|Line Numbers
  1. UPDATE tblTest SET tblTest.Price = 25.75 WHERE [tblTest].[Type]=1;
Jan 25 '07 #2
MMcCarthy
14,534 Expert Mod 8TB
I'm still relatively new to Access and I want to make a form that allows the user to edit a grouped field all at once (if this is possible?)?

For example, lets say there are 13 records in a table and in one column a the type is kept, either 1 or 2. For each type there is a price that changes. So I want the user to be able to select either 1 or 2 and edit the price and then on the one edit have all the records of that type change with the same one edit.

I have no idea how to do this! Please advise or reference places to get the information.

Thank you!
This is a matter of table structure.

If you have a table for types called for instance tblTypes and then store the price per type in that table. Then if you change the value of the price you only have to change it in the one place. You will not need to store it elsewhere but only to create a relationship to the TypeID in the table that refernces it with a foreign key.

If you're confused check out this tutorial

Normalisation and Table structures


Mary
Jan 25 '07 #3
I think in my effort to make the question simple I accidentally made it confusing. This database is going to work with fuel related transactions. Fuel prices change everyday. We have 2 fuel types. I need my admin to be able to edit the prices assigned to each of the transactions on a daily basis and I would like to do so through a form. But I don't want her to have to change each one individually. So I would like her to be able to input the price for all type 1's and then all type 2's.

I hope this makes the question clearer. Maybe I should also mention that the raw data is coming from a flat file and that is why I have the type and the price on the same table.

Thanks for any help!
Jan 25 '07 #4
MMcCarthy
14,534 Expert Mod 8TB
I think in my effort to make the question simple I accidentally made it confusing. This database is going to work with fuel related transactions. Fuel prices change everyday. We have 2 fuel types. I need my admin to be able to edit the prices assigned to each of the transactions on a daily basis and I would like to do so through a form. But I don't want her to have to change each one individually. So I would like her to be able to input the price for all type 1's and then all type 2's.

I hope this makes the question clearer. Maybe I should also mention that the raw data is coming from a flat file and that is why I have the type and the price on the same table.

Thanks for any help!
Regardless of where the raw data is coming from you will need to separate it into individual tables. You should never use a flat file as the basis for a table. Design the appropriate tables and append the data in from the flat file.

If you don't do this you will undoubtably have other problems. However, to answer the question you asked directly you would need to use an update query.

Expand|Select|Wrap|Line Numbers
  1. UPDATE TableName SET [Price] = [Forms]![FormName]![Price]
  2. WHERE [Type] =[Forms]![FormName]![Type]
Jan 25 '07 #5
The value of these networks/forums is huge. I wish that I could take those of you that answer all these questions out to lunch or something.

That helped a great deal! Thank you.
Jan 25 '07 #6
MMcCarthy
14,534 Expert Mod 8TB
You're welcome!

Glad to help.
Jan 25 '07 #7

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

Similar topics

1
by: MultiTaskinG | last post by:
I want to retrieve all comment stored from my web users ordered BY THREAD and BY TIMESTAMP (INT 11) with a single query (if is possible) now I launch this query: SELECT thread, timestamp,...
2
by: KoliPoki | last post by:
Greetings. I'm having a little trouble with a query. The idea is simple I need to display a list of recently unique visited URLs and the last time I visited. I have 2 table one stores the...
10
by: Randy | last post by:
I have asked a number of questions as a newbie trying to learn Access. Some folks have been very helpful with very direct and simple answers that help alot. Others give me answers with extensive...
8
by: Mike MacSween | last post by:
There doesn't seem to be a way to do this. The Access security model seems to be based around allowing the users to read/alter design of the form (where reading includes editing the data) I want...
9
by: rn5a | last post by:
A Form has a DataGrid which displays records from a SQL Server 2005 DB table. Users can modify the records using this DataGrid for which I am using EditCommandColumn in the DataGrid. This is the...
0
by: =?Utf-8?B?TGV0emRvXzF0?= | last post by:
I'd like to create a Macro that will sort some raw data, apprx 20k lines, remove some lines based upon a condition in a certain column. Then copy this data into a new spreadsheet and sort the ...
8
by: Atemporal | last post by:
When I click the link of this group, it shows the followings errors. Cannot find comp.lang.c%2B%2B There is no group named comp.lang.c%2B%2B. * The link you followed may be broken or...
1
by: zandiT | last post by:
hello everyone when working with access reports using the grouping sections, how do you change the title of the group header section depending on which group is being displayed. i have a report...
2
by: zandiT | last post by:
hello everyone when working with access reports using the grouping sections, how do you change the title of the group header section depending on which group is being displayed. i have a report...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.