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

"ACCESS" update a field in a table by entring in a form

hi there;
i'm having a table of cities{CityTable}. where the other column is about an integer.
i'm thinking of a form which load the cities and a chk box and a txt box for each one of them.
i want to enter a number for each city in form(txt box) and check some of chk box. now the only cities checked would ADD the number in txt box to the proper field in CityTable.
Feb 19 '15 #1
1 865
jforbes
1,107 Expert 1GB
If I understand you correctly, you want to fill a Datasheet with Something a bunch of Options, then use a CheckBox to select the Options, an a TextBox to enter an Amount for the Options. Then you want to click a button to Total up all the Amounts of Selected Items and update a City Record with the Total?

If this is the case, the easiest way to do this is to create a Temp Table that has the fields that you want to display in the Datasheet (Subform). You may need to create a routine to populate the Temp Table with the Values and Amounts you want to select from out of the Database. Additionally, if multiple users will be doing this at the same time, you will want to add a User column to the Temp table to keep their work separate. Build your Main Form and Datasheet/Subform and clear out and populate the Temp Table whenever the Main Form Loads. Then all you need to do is create the Routine to DSum() the values that are Selected and show them to the user or update your City Table.

If you detail what you are doing more, we can help you more.
Feb 19 '15 #2

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

Similar topics

3
by: Sven Seljom | last post by:
Hi all! I want to take the value from one form-field, deduct the VAT and return the value in another form-field. I have made a Public Function for this and attached it to the text-box. Can...
0
by: EKL | last post by:
Hi, I'm making a sort of Customer and Orders database in MS Access 2003. My problem is that I wish to update the table "tblTransaction" based on changes made in the table "tblOrderDetails"....
1
by: Kelly Olsen | last post by:
I have created an automatic update field in my Vendor_Table that automatically updates the date in that field to respond to any changes made to the record. However, I would like to display this...
1
by: Robert Waggoner | last post by:
I have a table with MgmtRevID and MgmtRevDate I have another table that requires the MgmtRevID to be selected each time a record is created. Access 97 database How can I write code that will...
4
by: yanjie.ma | last post by:
Hi, I've got a two part question on table and form design (sorry for the length but it takes a bit to explain). Our sales department uses a look-up table to help the them select the best...
1
by: Sharon | last post by:
Hello All, Is it possible to update Sql Table through DataGrid. I have a DataGrid which is being populated through a stored procedure, all i wanted to do is to update one field...
1
by: vaiism | last post by:
I have attempted using both Updata and Append Queries to solve this problem, and I can't seem to get it to work. I have three forms that each have an ID#, and a subform with related scores to...
5
by: Samc | last post by:
This may be abit basic, I am a self taught Access user. I have a form in my database to add soldiers details and they are assigned a cohort number depending on when they enlisted. For example if they...
0
by: newriver | last post by:
I have a subform that ties to a table that has 3 fields: - appname - link - type Only link and type have fields on the subform; the appname is from the parent form. I can retrieve the...
1
by: Trevor Bundy | last post by:
I would like to update a field in a table named ‘010 Consolidated Data’. The field that I want to update is ‘Begin Date #’. The value that I want to add to ‘Begin Date #’ depends on two other...
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...

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.