Table Updates

Apr 7, 2006

I'm new at access and have added some expressions to a couple of my forms but the table is not being updated with the results. help!

View Replies


ADVERTISEMENT

Table For Storing Updates

Nov 21, 2004

How do I create a table relationship where a secondary reltated table stores past dates, status code and customer ID. For example: I want to keep track of the past dates that an order was revised and why it was revised. So, if I have a customer who was due for installation on 10/21/04 and status is PEND for pending. THen on 10/18/94 I change the date of PEND to 10/25/04. I want to keep track of the times it changed and the reason why. HOw can I make the program automatically create a record in the revision table storing the past code, reason and date using customer ID as key and teh revision table would allow multiple records for each customer ID. DId I make sense?

View 2 Replies View Related

Making Changes In A Form That Updates A Table

Jun 3, 2013

In the attached DB I have a form that has a combo box which enables you to select an employee and all the employee info is then pulled based on the selection. I want to make changes to the info in the form and have the changes update the correct employee on the table. Currently the from will not let me make changes to the info and the table seems to add new lines rather than updating the corresponding line.

View 8 Replies View Related

Updating 1 Table That Updates Multiple Fields

Sep 20, 2006

I've been working on this problme for several weeks, thinking about it for the last month or so, and am at a loss of what to try next. I'm working on a database for my office that tracks all of the permits we have issued. Every year our permit fees increase by the CPI (consumer price index) and the permit fee entry in the table needs to be updated (75 to 80 entries).

Rather than typing them in every year (too many chances for errors) I'd like to be able to update our fee schedule table (8 entries, look up table) and have that table update all of our fee entries in the permit table.

Any ideas of how to go about this? Thank you for your help.

Scott

View 1 Replies View Related

Forms :: Trying To Create A Subform That Updates A Table

Jan 6, 2015

Here is the set up. I have a primary school database.

There is a main form that shows the students name and class.

The main form contains tabs for each subject (maths, english etc.). Each tab has a subform that is supposed to allow me to enter a comment about the student's progress.

My tables are set up properly (as far as I can tell).

The tables (simplified)

tbl_Students (has StudentID, StudentName)
tbl_SubjectList (has SubjectID, SubjectName)
tbl_Comments (has CommentID, SubjectID (foreign key), StudentID (foreign key), Comment)

The forms

The Master and Child (main form and subform) are linked using StudentID.

I use a query for fields in the Master form. Each subform has its own query that shows results for a particular subject.

The problem

My subform allows me to edit an existing comment fine (if I enter dummy data directly in a table).

BUT, if there isn't an existing comment, and I attempt to enter one, I get an error - "YOU CANNOT CHANGE A RECORD BECAUSE A RELATED RECORD IS REQUIRED IN TABLE tbl_Subjects."

What I have tried

I understand this error means I am violating referential integrity rules. But I can't see why. The tbl_Subjects is populated with 10 subjects and I am only trying to put a comment against an existing SubjectID.

I've checked that my Form Master / Subform Child is ok. I experimented with having StudentID _and_ Subject_ID to link the master and subform to see if that worked. It only made things worse because my subforms wouldn't display correctly.

View 5 Replies View Related

General :: Query Not Showing Updates In Table

Aug 7, 2012

I have a split database, a front for data entry and of course the back end with all the tables. I have created several Append queries to move records from one table to another (from Applicants to Students, once they are Accepted). The queries work - when I go into the tables and look, there's the data right where I told it to go. But when I open the Students input form (which draws from the destination table), the new data doesn't show up. I double-checked the destination table, and yes, the appended data is all there.

I tried running the simply query that populates the input form, and it doesn't show up in the simple query, either. I've tried Refreshing everything numerous times, tried updating the Linked Table Manager numerous times, opened and closed the program, and no dice - the data is in the table but never shows up in the simple query that populates the data input form. There's no filters on the simple query, so everything in the table should show up - but doesn't.

View 5 Replies View Related

Kinda Like Recent Post Macro Updates Table

Aug 13, 2007

ok i have this query.
Code:UPDATE [Claims Header] SET [Claims Header].status = 'I'WHERE ((([Claims Header].Claim_ID)=[claim id]));WHERE ((([Claims Header].Claim_ID)=[claim id]));
i want to have a button that runs this query but how do i pass over the claimid from my form? also when it's done running the query i want it to run a report.
so i was trying to make a macro, but how do i tell the macro to find the claim id from the form?

View 1 Replies View Related

Forms :: Main Form Updates The Table When User Has Not Validated

Nov 30, 2013

I have a table in my DB named TblStock and another named TblStock2..I also have a form in the DB named "frmStock" with the control source being "TblStock" . This form has a sub form "FrmStock2Subform" with control source being "tblStock2". The two forms are lined by "PurchaseID". This form is made to be used in entering products that have been bought for replenishment of stock.The problem I have is that when I enter data in the main form, by the time i click on the subform to start entering data, the table "TblStock" gets already updated.

Now lets assume somebody was about to enter data in the subform and later on changes his mind when the "TblStock" had already been updated, this will cause a waste of useful space because there is no corresponding record in the table "TblStock2". Secondly, if many users are entering data into the DB using that same form, I guest there will be some problems too.What i want is that the form should update both tables when the users validates the records.

View 9 Replies View Related

Help Me With Updates!!!

Jan 17, 2005

Sorry for my English, but i try to description my problem.

I have one form and i want all fields to have the privelage for update
without only the field of s/n ( Key of table ) ???

Any ideas!!! ( I am noob in access and VB )
Help me plz.

Thanks

View 2 Replies View Related

Updates

Jan 4, 2006

* I have a form that has a list box at the bottom of the form and all the fields (text boxes) displayed above.
* As I select a record in the List Box it shows that record in the text boxes above and allows the user to edit that specific record.
* I went one step futher and created drop down boxes out of the TextBoxes, which now reference a lookup table.
* Although the users have a drop down box they can still enter a new entry.

My problem is that I want the lookup table to be updated with any new entrys that do not exist in the lookup table. I had this working at one point but cannot remember how or what I did.

Any thoughts?

Thanks in advance



View 3 Replies View Related

Database Updates

Mar 27, 2006

Back at you guys with hopefully one more question (btw the command button code worked perfectly thanks)

Another thing my database has to be setup for is updates, Roughly 30 people will be using this database and to have them re-copy and paste the new database releases is out of the questions.

Does anyone have experience setting up code that automatically checks the version of the database created and if it differs downloads/installs the new version and the restarts the database so the associate will then be working in the current version?

I am looking to be pointed in the right direction to get this figured out, thanks.

View 3 Replies View Related

Automatic Updates

Oct 23, 2006

Hi there,I know very little about Access but been asked to find out if this is possible:On a database we have a date field for when subscription is due, is there any way that if a DirectDebit method of payment has been chosen, when the date of renewal is, access will automatically update the year to the next one?Thank you very muchCathy

View 1 Replies View Related

Updates To DB Not Saving

Jul 2, 2007

Hi

Have a bit of an odd problem with the DB im using at work. I have 1 DB on a shared drive that is accessed by 4 of us from our desktop PC's (password protected via 1 password that we all use - no separate logins).

The problem comes that we make changes to the data, exit via an exit button that uses a save all macro (that all works fine), however when we go back into to DB there are some times that the changes made have been lost and the data has reverted back to the previous version. There doesn't seem to be any specific pattern to this, it happens at random times and to random people.

Does anyone know what may be causing this, or anyway that i can prevent it happening?

much appreciated.

View 1 Replies View Related

Storing Updates?

Mar 31, 2005

Hi all

I have a database that stores customer records and their associated insurance details. I need to be able to track any changes made to that record within a set time period ie if details are changed fine it is reported next time report is run. But if details are changed more than once in between reports then first detail change is lost.

I would like to work out a way that changes can be written to a ??seperate version of the table?? and stored in there to be reported seperately and not just the final change as is the snapshot nature of a report? Is this possible? Could I possible make another version of the main table appended onto it? I feel I 'know' what I need to do but not how to even begin it! Any help would be appreciated.

DDiver

View 1 Replies View Related

Combo Box Updates

Jun 29, 2005

I have a time database which has a form to enter time. When entering time, The user must also select an item in a combo box that gives what category the user worked in. There are about 40 or so different categories. I want to know if it is possible to update the cobo box to the user's most recent selections. For example: if the user selects Management, which is at the bottom of the list, I would like to see Management at the top of the next list for the next time entry so that the user does not have to scroll down to the bottom again. Anyone have any ideas???

Thanks

View 5 Replies View Related

Combo Box Updates

Jul 15, 2005

Hi, please help!

I have a work order entry form with a "Client" combo box. The Limit to List property is set to YES. If a client is not on the list, I get a prompt to create new client account in a different form. This all works fine.

But after I create a new client and get back to teh work order form, the client does not appear in the combo box unless I close the form and re-open it first. This is very annoying.

Any suggestions? Thank you.

View 4 Replies View Related

Tracking Updates

Sep 22, 2006

I have read all of the audit trail stuff and searched on my subject but I think my solution could be simpler,

All I want to do is copy the values of the current record on my form into a history table with all the same fields.

Example Form:
[ID], [Machine], [Task], [Task Due], [Task Complete]
I want to put a button on the form that reads complete task and when the user pushes the button it copies all of the details for that specific record they are looking at into my History Table that contains all of the same fields.

This will give me basic history on when each task was completed for a machine and I can access for reporting

View 1 Replies View Related

Slow Updates

Sep 13, 2005

I have a project that produces a roll report. To do this, I have two tables:

T1 (roughly 20,000 records)
ID (Primary Key), PrevAmt, CurrAmt, Action

T2 (roughly 40,000 records)
ID, Amt (linked Excel spreadsheet)

I then run 4 queries in sequence

Q1: Update T1 set PrevAmt=CurrAmt, CurrAmt=0;
Q2: INSERT INTO T1 (ID, PrevAmt, CurrAmt) SELECT ID, 0, 0 FROM T2; /* keys that already exists will fail to insert)*/
Q3: Update T1 INNER JOIN T2 ON T1.ID = T2.ID SET T1.CurrAmt=T1.CurrAmt + T2.Amt;
Q4: Update T1 SET Action = iif(PrevAmt=0 and CurrAmt<>0,"NEW",iif(PrevAmt<>0 and CurrAmt=0,"DROPPED",iif(PrevAmt<>CurrAmt,"CHANGED","UNCHANGED")));

T1 and the queries is in an Access file on a network drive. T2 is a link to an Excel sheet on a network drive.

When I run the queries from a PC on the local LAN, it takes about 2 minutes to update. I consider that acceptible. But I now have to run it from a PC attached to the network via a VPN over a somewhat slow DSL line. The queries take over 20 minutes to run. I want to cut that time down. But the Access file and the Excel file need to stay put as other users use them for other purposes. (Though they know not to access them till after they see my roll report in their in-box.)

What can I do to decrease the update time on this?

Thanks,
David

View 2 Replies View Related

After Update Event = No Updates

Mar 6, 2006

Hi there all i need to set a field on my form not to accept any updates to what ever was typed in the field before it was saved the first time kinda like After update event = no updates :confused:

Any idea on how this can be achived please.

Thanks so very much in advanced.

TIDMAN.....

View 3 Replies View Related

Easy Updates On Tables

Feb 21, 2007

I am trying to come up with a way to update tables every week from two databases. I have one database for a satellite office and one for corporate. Each office has BOTH databases so as to keep up with their own data (we are not on a network). Each office will have to export their Project Table data to the other and then upload (update) the corresponding database. So:

ABC Division exports their project data from their Project Table once a week and sends to DEF Division and vice versa. Then ABC takes the exported Data from DEF and updates their database for DEF and vice versa.

Field names and additional field names will not happen; however, the data in those fields may be updated OR there may be new records added. So basically, I guess I need to delete the old and put in the new every week but make it VERY easy for the end users (who know nothing about Access). The tables that would be updated are related to other tables.

Does anyone have any suggestions where to get started? I've tried an Append query and that only adds records, not looks for changes in those records.

View 8 Replies View Related

Help With Queries And Record Updates

May 7, 2006

Ok I been at this most of the day and I have got no where fast.

I have a table with two fields [type] and [amount]

when populated I have something like this

hats 23
coats 33
shoes10
hats 18
coats 19
shoes 5

I need the individual sums of each of these records. for example shoes 15

I have created a query that does this for me. and I have put this information into a form. How do I get to the values to use else where. The form I created was a single form which shows coats 54 then by using the record navigation I get shoes 15. I think I need to pass these values into VBA but have not go a clue where to start.

Please help.

View 11 Replies View Related

Only Allow Updates After Button Click

Sep 19, 2005

Hi,

I have a form with a number of drop-down lists on it and each of these lists is bound to a field in a table.

When I return the results of a search to this form I want to allow users to be able to cycle through the records and change them if they want. However, the changes should only be saved if the user clicks on the "update record button". This button is simply the save record button by the MS Access wizard.

At the moment if they change the value in one of the drop down lists and move onto the next record the change is saved even though the user doesn't click any button. I want to prevent this from happening.

Any ideas on how I might achieve this?

If I prevent "AllowEdits" in the form properties I can't update the form using the "update record button" either.

Many Thanks,

View 2 Replies View Related

Check For File Updates

Mar 10, 2008

When I open a form, I want it to automatically check to see if there is are any updated files. I already have imported files into Access, but want to automatically check to see weather there have been any updates to the files.

Example

Form opens,
Checks the “C:MyDouments” for any updated Excel Spreadsheets (This could be done by the modify date and time),
Imports the updated Excel Spreadsheet into Access

End

If the code checks the Modify date and time of a excel file, how can I import these values into Access i.e. I could have some query that would check the date and time of an excel file against the date and time in the access table – and if different import the latest version.

Also check for any new files.


Any ideas or help would be much appreciated

View 2 Replies View Related

Track Updates In A Dataset

Mar 21, 2013

I have a table into which users insert records through a user form, I need to track the updates made in a record in a data set and i have a user log in function, it needs to tell me who updated last and what did they update.

View 1 Replies View Related

Automating Date-Based Updates?

Jan 20, 2006

I am a new Access user. I have created a database to track and inventory animals brought to a local animal shelter. The database includes information such as when the animal was brought in, who dropped it off, when it was adopted (Hopefully!), etc. The database is being used by people who have limited computer experience and the challenge has been to automate it and simplify it as much as possible. I have created several Switchboard pages to try and accomplish this.

I have done research through Google and MS support and have found little help with a solution to this problem:

When an animal comes to the shelter, it is held for three days before it becomes available for adoption. I have created seperate fields for Date In Day, Date In Month and Date In Year. There is also a field detailing the animals adoptability status. This field is left blank in the intake process, and is then manually updated to Adoptable, Biter, etc., after the three day period. Is there a way to automate the Adoptability Assessment Field (which is a Lookup Table Field) so that it changes from blank to Adoptable after the three day period? (We have very few animals come in that are marked as Biters, so I just need the field to change over to Adoptable after three days have passed. Unless a solution can be presented to filter animals with Biter status out of the solution.)

I truly appreciate any help that can be offered.

View 4 Replies View Related

No Updates Once Date Is Entered Into Text Box

Feb 6, 2006

Hi there all, I tried the search option on this board but maybe its just that i dont know how to ask the question.
I have a text box on my form with and afterupdate event that inputs todays date in to another text box on the same form, can this be set so that once that date is apperas in the text box that no further updates to the date can take place.

Thanks in advance for any help.

TIDMAN.....:confused:

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved