FORMs Not Recognising A New Data Field

May 15, 2007

I have been using an Access database to manage my contacts for about ten years now. I have often updated the table by adding new data items (fields) with no problems. I have updated the associated FORMS, and the new data item(s) have always been visible to the forms. Today, I tried to add a new field to the table, which was apparrently successful, but when I try to modify the associated FORM to enable data entry to the new field, the FORM does not see the new field.
If I produce a totally new FORM, the new filed is visible to it.

What has changed? I am using XP SP2, with ACCESS 2002 SP3. I have tried all the tricks I know, but I cannot solve this one. Help, please!

View Replies


ADVERTISEMENT

Access 2000 Not Recognising Recordset

Feb 25, 2007

Hi, as you can see I'm up early trying to sort this one. I created a database on my PC (Access 2003) on one network, then converted it on my PC and transferred it via CD to another (PC and network, Access 2000). Due to problems I wanted to create a new database on the new machine and take all the tables, forms etc from the old database.

However, having done this when running the code it stops when it reaches the recordset. The current references I have are VBA, DAO 3.6, ADO 2.7, Ole Automation, and Access 9.0 library.

Help much appreciated.
Richard

View 1 Replies View Related

Forms :: Create Data Entry Form To Input Data For Field

Mar 5, 2015

I an trying to create a data entry form (IndividualsEntryFm) to input data for fields such as (First Name),(Birthdate) etc., these to be saved to the (IndividualsTbl)

I also have another table (NamesTbl) which has family names etc. The two tables are linked by a (MainID) field. I want a combo box on the individualsEntryFm so that I can select the family name. Then I wish the empty fields for the IndividualsTbl to be available to enter data.When I press the save button I then want this data saved, together with the MainID from the combo box to the IndividualsTbl.

I have set the IndividualsTbl with a (PersonID) field as an auto number each individual therefore has a unique PersonID but may well share the MainID. I'm trying to link many people to the same address.

View 1 Replies View Related

Forms :: Copy Value From Field In Subform To Field In Main Form During Data Entry

Jul 18, 2013

How can I get the value from a field in one table (in the sub form) to copy/insert into a field in another table (in the main form) when adding a new record?The main form and sub form are linked using parent/child linking, and the sub form is in a tab.I have table A (Visit Dates) in the main form which is used to record the date of a visit to a church. Table B (Quarters and Peals) is used to record an event that took place at that church during that visit. Note that not all visits in table A require a record to be created in table B - but half or more do.

In tables A and B I have a field called "QuarterOrPealID" and these are both primary keys, though the field in table B is set to 'no duplicates' and in table A it's set to 'duplicates allowed', as table A has its own auto number/pk. They are both linked in the relationships.

So, when I add a new record to table A using the main form, I might then need to click on the tab in the sub form to create a new record in table B, which has to be linked to the same record in table A. When the "QuarterOrPealID" auto number/pk is generated in the sub form (table B), I need that value to update to the "QuarterOrPealID" field of the main form (table A), so that when I'm viewing these records the form pulls all the information nicely together.

View 10 Replies View Related

Forms :: Data From One Field To Fill In Field In Subform

Nov 26, 2013

I am doing this all as a bound form

My main form got a field named 'PersonID'.

My subform also got a field called 'PersonID'

The subform 'PersonID' populates however the mainform 'PersonID' does not.

I just need to write code, or maybe do something that will copy the number from subform and paste it in the mainform field, maybe at the click of my save button.

View 8 Replies View Related

Forms :: Clear A Field If Second Field Has Data

Aug 28, 2014

I have a form with a subform. On the subform I have a field that has customer number in it, on the main form there is a field that will need to say "none" if the field with the customer number is empty, and empty if the customer number field is filled in. the field will not print out in the letter if there is no data on it.

the customer number comes from the table "CustomerNumbersData"
the the field that needs to be empty on the main folder comes from table "CustomerData"

View 13 Replies View Related

Forms :: Pulling Field Data?

Jul 11, 2013

I have a form and a subform. I want to pull the data (current record) from a field (Unit) from the main form and use it in a report query, which is connected to my subform.

I thought I could create a variable (strVarUnit) then call the variable in query but I'm doing something wrong.

On the main form in the open event I created the variable ...
Dim StrVarUnit as String

On the form after updating the Unit field I placed an event ...
StrUnit = Me.Unit

I then placed Call StrVarUnit() in the query.

This doesn't work (variable undefined).

View 3 Replies View Related

Forms :: Not Showing Some Of The Data In Particular Field?

Feb 15, 2014

One of my forms in the database is not showing some records in a particular field. Although those records are entered through the same form and are shown in the table, yet some of them are not visible in the form.

This is happening only in a particular field, and in that field, some records are shown , and some are not shown.

View 2 Replies View Related

Forms :: Copy Data From On Field Into Another

Jan 10, 2015

I would like to copy the Data from the field PORTFOLIO CODE into the field BUYSELL.

I would like to copy the CURRENCY Data in the field STOCK EXCHANGE into the field CURRENCY

We use MS Access 2007.

View 1 Replies View Related

Forms :: Copy Data From One Field To Another?

Jun 20, 2014

I have a single table / single form on the form we are entering amounts in two fields

Split Net Values
Total Net Value

We then have a further two fields

Split Gross Value - which is a calculated field based on Split Net Value plus 20%
Total Gross Value - which is a calculated field based on
Total Net Value plus 20%

I have a further two fields

Actual Split Gross Value
Actual Gross Value

I need to copy the Split Gross Value into the Actual Split Gross Value but still be able to amend the figure.

Also need to copy the Total Gross Value to the Actual Gross Value and yet again be able to amend the figure.

View 4 Replies View Related

Forms :: Same Field Data In Two Different Forms

Jan 30, 2015

I have two fields..on two different forms..the output needs to be the same.

FormA.field b = FormB.field a

FormA.field b is a calculation on form A....the end result.

On FormB that needs to be my beginning number. I have tried everything that I could think of..also the fields are a part of a subform on both forms

I have tried

Forms![fsub_Final_Table Query1]![txtTotalBC1]..this is

fsub_Final_Table Query1 (FormA) is the subform and txtTotalBC1 is the resulting field on FormA...

I am placing all this into the control source in FormB.FieldA

View 1 Replies View Related

Forms :: Average Data In A Field And Print It Out In Another

Oct 28, 2013

I am trying take all the data from one field "TOTAL" and Average it out and print it in one of my forms. I would also want this data to update automatically as the totals are updated. I am attaching some screen shots of what I am talking about The first pic is the totals field that i want to have averaged up. The second pic is where I want it to be printed out.

View 7 Replies View Related

Forms :: Getting Data From A Query For A Field On A Form

Mar 3, 2014

I have a database I use for tracking IT problems (tickets). The form I use has a field to select who the ticket was opened by. To select this, I created a query that shows only active contacts (users) and set the opened by field to use this query to select the user. It works great except for the fact that once a contact is no longer an active user their name on the opened by field is blank and no longer shows on any old tickets they had. Their name is still associated with the ticket though. I know this because I have the opened by field set so when it loses focus it opens the contact record (form) of the user so that we can update their data. So I find it weird that the opened by field on my old historical tickets wont show the name of a user who is no longer with us but the field itself knows who it was and brings up the contact form for the non active user after lost focus.

View 1 Replies View Related

Forms :: Copy Data From Combo Box To A Field

Jan 5, 2015

We have been trying to copy data from a combo box to a field without any success.

===
Private Sub PortfolioCode_AfterUpdate()
' From the combo box "PortfolioCodek" Place the field data into Column # 1
Me.PortfolioCode = Me.Broker.Column(1)
End Sub
===

View 4 Replies View Related

Forms :: Add Field Data To Existing Table Row?

Dec 21, 2014

I have a form (frmCompany) which has two combo boxes (cmbCompany and cmbCity) which is used to add field data into a table (tblCompany). The Company field is the only required field the other is optional.

In some cases I may wish to add a City, at a later date, to an existing Company using frmCompany. I now select the company from the cmbCompany combo box then add the city to cmbCity. The problem is that when I close the form I get two companies in the table with same name, one has a city and one does not.

How can I add a new City to an existing Company, using the form, without adding a new Company?

View 9 Replies View Related

Forms :: Find Data Using Field In Form

Jul 19, 2013

I have a form that is bound to a query. The user inputs their id in a text box and the form should find the corresponding record with 5 different pieces of data displayed in separate text boxes. There is at any given time only one record set per id. The query has in the EmpID the criteria: [Forms]![frmProdStopEntryNew]![EmpID] to reference back the EmpID as the filter.

On the form, after the employee enters their ID, the afterupdate should pull-up the record that corresponds to that id. The code for the afterupate is:

Code:
Private Sub Emp_ID_AfterUpdate()
Me.Filter = "EmpID = '" & Me.Emp_ID & "'"
DoCmd.RunCommand acCmdApplyFilterSort
Me.StopTime = Now()
ReasonID.SetFocus
End Sub

I also have a form load to go to a new record just so that the form is blank when the user enters it.

Code:
Private Sub Form_Load()
On Error GoTo Form_Load_Err
DoCmd.SetWarnings False
DoCmd.GoToRecord , "", acNewRec
Form_Load_Exit:
Exit Sub
Form_Load_Err:
MsgBox Error$
Resume Form_Load_Exit
End Sub

The problem I'm experience is that the query to find the record has a 50/50 hit and miss success rate. I think this is because the form load gets activated each time the query is refreshed afterupdate. And the form load has the new record syntax so it sort of nullifies it each time. How do I fix that?

View 8 Replies View Related

Forms :: Looking Up Data From A Table To Set Form Field Default

Feb 11, 2015

I have a basic invoicing setup, with a Form (Invoices) and subform (InvoiceDetails).When in the subform, i have a combo box to choose a Product Code (saved in table as PCode).I want now to auto fill in the NettPrice and (Product Description) PDesc fields in the subform row - by looking these up in the Products Table and entering the data into the relevant fields on the Subform. This lookup will be based on PCode.

I tried all sorts of methods and the one i favour, if i could get it to work, is setting up a Function then calling this function from the Default Value property of each field involved.So, for the Product Description field (PDesc), i created a Function as follows:

Function GetDesc () As String
GetDesc = DLookup ("[PDesc]", "[Products]", "[PCode] = " & Forms!InvoiceDetails!PCode)
End Function

Then i try to call by entering =GetDesc () into the Default Value property for the PDesc field.I seem to have a syntax problem with my function code.I know some of my values like NettPrice need not be fields on my Invoice Details table, but the prices change and I also need to be able to overwrite prices etc when typing invoice.

View 14 Replies View Related

Forms :: Filtering Data Field On Main Form?

Jan 22, 2014

Is it possible to use Filter option in my form without using Query Wizard? - So that the user would be able to edit and change the other field on the same form

View 2 Replies View Related

Forms :: Reformat A Field To Match External Data

May 29, 2013

I am attempting to use some external data to populate fields in my DB. I would like to reformat the ProductID in my DB to match a ProductName coming into my DB. We have many products that have 2 pieces. If the product does have two pieces, the external database has two ProductNames that look like this:

0000967
2000967

I would like my database to be able to pull information for each of these 2 part products (they will be displayed as one product in our DB, never to be seperated). I have a form that gives the exact measurements of the first piece by using the ProductName and matching my ProductID (0000967). I would now like to write a little VBA to populate some fields on the forms that are pulled from 2000967.

something like:
Forms!Product!txtField2 = DLookup("[FieldName]", "TableName", "[ProductName] = Forms!Product!ProductID")

The issue is that I need to only get the trailing 6 digits of my ProductID and add a 2 at the beginning. Is there a quick Format syntax I could use to accomplish this?

View 14 Replies View Related

Forms :: Verification Rule Based On Data In Another Field

Mar 5, 2015

I want to set a rule where employees cannot change the "Status" from "Active" to "Closed" if there is no date entered in the "Actual Closure Date" field.

The 2 fields I am trying to create a rule for are called 'Actual Closure Date' and 'Status'.When we raise an incident the 'Status' is set to 'Active' and the 'Actual Closure Date' field is left blank as it hasn't yet been closed.What I want to do is prevent people setting the 'Status' to 'Closed' when they havent entered a date in the 'Actual Closure Date' field.The Form name is called 'Issue Details' and the information is stored in a table called 'Issues'.

View 4 Replies View Related

Forms :: Text Box Data Validation Against A Field In Another Table?

Jun 15, 2013

I am working on a form that registers new training attendees. One of the fields in my form asks for dealer number.

I have a separate table where all the dealer information is stored. One of the fields is a Customer Number field

I want to ensure that entries in the Dealer Number textbox on my New Registration form matches a valid Customer Number in the Dealer Database Table

I would like this verification to occur either upon a Click event with a button or on an After Update event.

View 6 Replies View Related

Forms :: Applying Filter - Display Data Even One Of Field Is With 0

Sep 23, 2014

While applying filter in forms, i have 6 fields in the form and i want to display the data even one of the filed is with 0.

I used the below code, but this one display the data where all the fields are 0. I tried or in place of and but still its not working.

Private Sub Form_Open(Cancel As Integer)
Me.Filter = "[Placed]=0 and [receievd]=0 and [Ordered]=0 and [processed]=0 and [delivered]=0 and [closed]=0"
Me.FilterOn = True
End Sub

View 2 Replies View Related

Forms :: Form Field Always Null Even When Showing Data

May 3, 2015

The code below always displays opens form even when field being tested is null.

Private Sub Assign_Classes_Click()
On Error GoTo Err_Assign_Classes_Click
Dim stDocName As String
Dim msgboxstring As String
Dim stLinkCriteria As String
Me.name_found.Requery

[code]....

View 14 Replies View Related

Forms :: Copy Field Data From Form To Subform

Jan 9, 2014

I have a form puling from one table and then a subform in that form pulling from another table.I have a field in the [FORM] called [GROSS REFUND] and a field in the [SUBFORM] also called [GROSS REFUND].I want the value of [FORM].[GROSS REFUND], if the value is not zero, to be copied into a new record on the [SUBFORM.[GROSS REFUND].

View 3 Replies View Related

Forms :: Update Table If User Add New Data In Combo Box Field

Jan 9, 2014

I have a combo box that get its values from another table the problem i am having is when a user don't see the info they have in the combo box then enter the new data into the combo box field but it don't update my table with the entered values. How can i fix this to update my table if the user add new data in the combo box field.

View 3 Replies View Related

Forms :: Validate Field Data If Result Exist In Query

Jun 19, 2013

I have a form that contains two text fields i.e.; [Scat_text] and [STyp], which each can be changed by the users. I would like to combine the results of the two fields together and validate if the results exists in a query. What would be the best way to accomplish this?

View 1 Replies View Related







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