Editing A Field From A Different Table

Apr 27, 2005

I hope I can explain this:
I have a database with a table "Itinerary" it has two fields "Date of Visit" and "Agency Number"
I have a second table that is linked from a different database "Agent Info"

I created a form based on the "Itinerary" Table then I put in a sub form to show the "Agent Name" and "Market Rep" from the "Agent Info" table.

The relationship is on Agent number in both tables. The user then adds the agent number on the form and the Agent name and Market rep automatically come in.

The problem is the user wants to be able to occasionally modify the info in the Agent Name and Market Rep fields. But does not want the new info to be changed on the original "Agent Info" table.

Can this be done?
I hoep someone can help.

View Replies


ADVERTISEMENT

Forms :: Editing A Forms Control Source To Update A Field In A Table

May 28, 2013

I have created a table for installer invoicing, and have a field for invoice amount. I have created a user input form that allows a user to fill in certain pay rates for different aspects of installation, and would like to know how to make the invoice amount a calculated control that will auto update the field InvoiceAmt in my table. I can't figure out how to do this in the property sheet.

View 3 Replies View Related

Editing Field Values That Get Summed Up - Resets Total Field

Apr 7, 2015

I have several fields that I fill in on a form and they all need to add up in the last field. The first way that I tried this worked good for the initial data entry on the form. However if I need to edit one of the fields in the form then it resets the TotalCost field and I have to enter all of the numbers again. Is there some way that I can make this work? Or is this an Access quirk I will have to live with?

I tried to do this two different ways.

Here is the code for the first method:

Option Compare Database
Dim C1 As Long 'For Total Cost
Dim C2 As Long 'For Total Cost
Dim C3 As Long 'For Total Cost
Dim C4 As Long 'For Total Cost

[Code] .....

This way works great the first time that I tried it, I had to re-enter info in all the fields if I wanted to change one.

Here is my second method:

Which didn't work, i received an error message:

"The expression After Update you entered as the event property setting produced the following error: Invalid outside procedure."

And then nothing changes.

Code:
Option Compare Database
Dim C1 As Long 'For Total Cost
Dim C2 As Long 'For Total Cost
Dim C3 As Long 'For Total Cost
Dim C4 As Long 'For Total Cost

[Code] ....

So I know this second method is incorrect.

View 3 Replies View Related

Editing Hyperlink Field

Apr 6, 2006

Is there any way to edit the hyperlink field in my table, I'm thinking along the lines of an update query?

The database has thousands of records and the user has not typed any text into the 'Display Text' part of the hyperlink. This means that the stored hyperlink is double size because if no text is entered into the display text part then access uses the hyperlink string. This is a problem for me later on in the design.

I have tried a simple update query and this updates the display text as required but also loses the hyperlink itself, which I want to remain unchanged.

Any ideas?

View 1 Replies View Related

Editing A Calculated Field

Mar 28, 2006

Hey all,

I have come across a problem with my database that I would appreciate some help with.

I have added to an existing table by creating a query with calculated fields (calculated from fields in the original table).
However, a few values in the calculated fields result in "error" or are null, this is due to the values in the original fields.

I have been given default values to substitute in for these error values, but I have found that I am unable to "edit" cells in a calculated field. (i.e. just trying to type a value in, replacing the "error").

Does any body know how I could go about putting these values in?

Or is it just a case that as they are known (not calculated), then they have to be included in the original table?
If so, how would I go about getting the calculated and non-calculated values in the same field?

Any help will be appreciated,

Thanks all,

Matt. :confused:

View 10 Replies View Related

Editing A Field OnClick In A Form

Jul 26, 2005

I have a button in a form that needs to change the text in a field named idStatus from "Assigned" to "Returned"

I have tried using an expression like this "[Form]![Field]=12" in the OnClick spot but it returned an error. There is no "custom made" wizard for this and my VB skills are lacking.

Once again, thanks! (I know I post alot but this forum is amazing!)

View 1 Replies View Related

Editing A Table

Apr 2, 2008

I am using a form with command buttons to allow an administrator with limited Access knowledge to update certain tables. This is usually done by opening a form that is linked to the table and allow for changes. For one particular table, I would like the Administrator to be able to make the changes directly in the table. I would like for them to access the table with a command button. Here is the code I am using to update the table through the form. How do I need to change it to open the table and not the form. I tried changing the DoCmd to OpenTable and changed the stDocName to "tblStaff" but I received a compile error.

Your help is appreciated.

Private Sub cmdPermission_Click()
On Error GoTo Err_cmdPermission_Click

Dim stDocName As String
Dim stLinkCriteria As String

stDocName = "frmStaff"
DoCmd.OpenForm stDocName, , , stLinkCriteria

Exit_cmdPermission_Click:
Exit Sub

Err_cmdPermission_Click:
MsgBox Err.Description
Resume Exit_cmdPermission_Click

End Sub

View 5 Replies View Related

Modules & VBA :: Editing To Force At Least One Space In The Field

Jul 10, 2013

Not = " " And InStr(1,"seat_person"," ") <> 0

I have a field into which I wish to place a person's name and I want to ensure that the field has a space in it but is not a blank field,

so
all blank - illegal
"Bob" - Illegal
"Bob Smith" - legal

the edit at the top is my attempt to code it but it isn't working.

View 13 Replies View Related

Log Creation For Editing On A Table

Dec 7, 2005

Hello,

I have created a table containing jobs that need to be done from my team (IT production). Each time someone start or finishes a job, he must fill a box that updates a specific row in the table. I want to log the time of that action.

Any ideas of how I could set this up in Access? I have tried the Now() function in the Default Value of the field End Time, but this is updated everytime I refresh the table

View 5 Replies View Related

Editing Table Data From Within A Form

Jun 8, 2007

Hi Guys

I'm trying to create a database application which logs the number of times which i do a certain task.

Is it possible for me to create a button within a form that will increment the value with a particular field by one?

I have searched the net but can't find anything.

Thanks
Matt

View 6 Replies View Related

Lock A Table For Editing The Records

May 22, 2007

Hello all,

I have a question, I'm building a MS ACCESS database and within it i have a table for putting in my program critical parameters. I don't want anyone to change the content of that table. That means not editing the 1 record in it and not adding a new record. Within the program is't a problem but if you make an other blanc database you can import the table, change it and export it back into the program (i know it is far looking but it happens).

How can i lock a table so it cannot change or it cannot be exported or imported???

View 2 Replies View Related

Tables :: Filter Table With No Editing

Jun 10, 2013

I'm creating an application and I want the users to be able to view a table and filter it, however; they won't be able to edit it. Like I said, seems simple enough, but since I'm new to Access I'm not sure how to approach this.

View 1 Replies View Related

Editing Table Entry From Form?

Aug 27, 2015

I have a Form that is used for creating entries to fill a table. On the same Form there is also a list that shows everything in the table and a double click on the list will populate the Form with that data. The problem is that "Save Record" command button will not update the table because it thinks it is creating a new record.

The code to populate the form from the list is

Private Sub EmployeeEntryList_DblClick(Cancel As Integer)
Me![Number] = EmployeeEntryList.Column(0)
Me![EmployeeNumber] = EmployeeEntryList.Column(1)
Me![FirstName] = EmployeeEntryList.Column(2)
Me![MiddleInitial] = EmployeeEntryList.Column(3)
Me![LastName] = EmployeeEntryList.Column(4)
Me![Supervisor] = EmployeeEntryList.Column(5)
Me![Group] = EmployeeEntryList.Column(6)
Me![Shift] = EmployeeEntryList.Column(7)
End Sub

how I can make it populate the form if an entry is double clicked and then be able to save a modified version of that record over top the original.

View 6 Replies View Related

Access - Locked Table For Editing

Aug 31, 2012

I have a table which is linked to a form which has been working fine for over a year now but yesterday the table "locked" for editing. I can now only copy data from the table. The editing functions delete, cut, new etc are not working, we can still filter the data.If we enter data on the form it creates a new line on the table but we cannot edit directly from the table.

View 6 Replies View Related

Access Has Stopped Working When Editing Number Field In Tables

Apr 24, 2013

Access 2013 stops working when I open any table in design mode, and select any field with the type "Number". I can edit Text, Date or Yes/No fields, but not Number ones.

View 7 Replies View Related

Editing Table Data From Within A Form Using A Button

Jun 12, 2007

Hi All

I'm trying to set up a form to log my clinical placement, and the number of time i undertake a procedure.

I want to have a list of a few procedure(fields) and then button next to each one in a form which will increment the number by one

How do i go about doing so?

View 3 Replies View Related

Forms :: Search Multiple Fields In Table And Open Matching Records For Editing

Dec 10, 2014

Create form to search multiple fields in table

Return records that match search

Open the record that you want in Form View for editing

View 1 Replies View Related

Tables :: Auto-populate Table Field From Calculated Field In Another Table?

Jan 15, 2015

I am creating a database to keep up with the expenses for my art business. I have a table for Vendors with a field (Mileage) for one-way mileage that I enter manually (EX: 11.8 miles). Then I have a calculated field that basically just multiplies the Mileage field times two to get total mileage to and from my house to vendor location. (Total Miles) {The reason I want to do this this way right now is because I didn't keep up with my mileage this year and I am having to look up the distance from my home to each location)

Then I have a "supplies" table where I show the date, the vendor, the item, cost, etc, and I want to add a Total Mileage field based on the calculated Total Miles field in the Vendors table that will automatically populate based on the vendor of each transaction. I just can't remember how to make this work and I know just enough SQL to be dangerous.

View 2 Replies View Related

Tables :: Update A Field In One Table Based On Status Of A Field In Another Table

Aug 2, 2013

I have started work on a database to track the many (several hundred per annum) projects my company undertakes. A 'main' table lists projects, their fees, their key dates, their project numbers, etc. I have created another table for tasks. Each task is assigned to a project (via the project number), and may be 'open' or 'closed'. I have separated the tasks table from the projects table as there may be several different tasks for each project. It is also good to keep a record of the tasks.

I want to prepare a report from the projects table that lists projects IF they have any open tasks.

In my mind, this means 'If a task, with the corresponding project number, is open, put a 'Yes' in the 'Tasks open' field of the Projects table.'

View 7 Replies View Related

Update OnHandQty Table Field Based On Qty Field From Another Table / Form

Oct 30, 2012

I have a table called Inventory (table1 - PK=INVID) that contains all inventory ID numbers and descriptions. I have another table called Inventory Transactions (table2 - FK=INVID) that gets updated through a form. When a new transaction is made in table2, I want the transaction amount to get added or subtracted to an OnHandQty field in table1. I tried having table2 (transaction table) as the main form and then table2 as the subform, but I couldn't get table2 to update.

View 5 Replies View Related

Editing When Used By Others

Jan 23, 2007

Hello,

I've got a somewhat urgent question;

When i'm editing in my database other users can't open the database and when they have the database open i can't edit it.

Is there a possability where i can make it possible to enable me to edit while others are viewing, something like a developers database and a user database that update eachother?

View 2 Replies View Related

More On Editing Db And VSS?

Jan 26, 2005

Hi there,

We have a 2003 ms access db that has multiple users 24 hours a day. There are two developers and changes being made all the time to the front end which is on a server.



The ONLY reason we need visual source safe (IF AT ALL...see below) is to be able to make changes even though not in it exclusively. We used to be able to do this with access 97 but not since we upgraded. We get the message: you do not have exclusive access to the database at this time. If you proceed to make chagnes, you may not be able to save them later"



And we never can even if someone is not even in that particular form.



It says: use microsoft visual sourcesafe add-in for microsoft office access"



Is this JUST an addin or do I need the software? I'm not sure what to do and I don't think we need all of the features of the full version.



Could someone advise the best way or where to get what we need?



thanks

View 3 Replies View Related

Problems Editing Mdb

May 11, 2005

Evening all,

I used to program access db's many years ago but it seems that I have forgotten my stuff and need some help.

I have 2 mdb's. One labelled client and one labelled server. They have been copied from an old workgroup network onto a new domain environment, but the problem was the plonker that moved the data did not think about the impact of the database.

Problem I have is when I open the client mdb now, I get the front form but none of the buttons work because it is looking for a network path for the server.mdb which doesn't exist. To add to this I don't know how I can edit the client mdb with the new network path as it removes the bar at the top so that I can't switch into desgin view etc.

Can anyone help?

Thanks in advance,
Abbos

View 8 Replies View Related

Editing Report

Aug 5, 2005

how do i edit a report

i'm new to access

i'm working with this database that will output a report(letter in word document) when the user clicks on a command button
i'd like to edit the letter but i don't know where it's stored.
could someone please show me how to access the report

thanks

View 4 Replies View Related

Editing After FE/BE Split

Nov 21, 2006

I created a database a while back. It was complete to my standards at the time. I split it FE and BE to protect the data.

Since then, I have made several changes on my machine to the user interface and some of the back end tables and queries.

How do I insure that these changes are seen on all the different computers on my network?

They only seem to exist on my personal machine.

View 2 Replies View Related

Problem Editing

Jun 17, 2005

i created a database to place in order my movies collection with 4 fields in a form. the problem is that when i use the form, and accidently change a record and after that i exit the database, it saves the changes. i would like to know what i can do so it won't keep the changes except if i press the save button on the form and also allow me to add more records ( i tried to lock the field but after that i couldn't add any records...). i am not much of access user so please be as descriptive as possible.thank you all!

View 5 Replies View Related







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