473,395 Members | 1,456 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.

Form updated w/ new field, past data not viewable!

3
Access 2010.

I'm a returning Access user, creating something basic from a MS template for asset tracking. Thus far I've populated my file with about 30 assets, populated my employees table, asset categories table, etc.

ISSUE: I've modified my ASSETS table to include one new field after inputing 30 assets. After creating the new field in my ASSETS table, I went to design view for my form and created the new box, tied it to my newly-created Control Source (defined in the table) and now when I go to my ASSETS form, I can't see anything that was posted there before! The data is there in the Table, but the form is essentially reset. Any new assets added can be seen, but none of the old data can be seen. I can go through and add values through the table, but if I wanted to use excel I would've...used excel.

What do I need to do in order to refresh my Asset Form so I can view my data in the form posted there previously?

Curious,

Greazy
May 20 '10 #1

✓ answered by Stewart Ross

Hi Greazy. Your form should, ideally, be based on a query rather than directly on the table. The query then acts as the form's record source. The advantage is that you can sort the records in whatever order is appropriate, whereas when you base a form on the table you see the records ordered by whatever is the primary key field - often not the order you would want to present your records to users.

If your form is not being filtered and you simply added a date field there is no logical reason at all that you cannot see all records. Please ensure that you have no filters active - you will see any active filter in the form's Filter property in design view. You can also see the Recordsource property, which specifies the table or query on which the form is based. I'd check that property as well, just to make sure it matches what you expect it to match.

Other than what I have suggested I can see no reason for the form not to show all records.

A final thought: please make sure your form's properties are set to Allow Edits. There are three properties - Allow Additions, Allow Edits, and Allow Deletions which alter form behaviour. If the form is set to Allow Additions - Yes and Allow Edits - No you will not see existing records - you will be able to enter and review new records only.

-Stewart

4 1556
Stewart Ross
2,545 Expert Mod 2GB
Hi. If you add a new field to a table that contains existing records, your existing records will not have any value in the new field - that is, the field will contain a Null. This is true for almost all field types in Access except boolean - even if you have a default value specified, if you add a new field to a table any existing records will contain nulls in that field.

If you are linking this field to another table by a JOIN, say, or as part of a specified relationship, the null values will exclude those rows from the resulting join.

If this is the case, you will need to set valid values for the new field in your existing records currently containing the null values. For example, if your field is a long integer value and 0 is an allowed value meaning, say, 'Don't Know' then update the field to 0 for the records which currently contain nulls.

Another possible explanation is that you are applying some kind of filter to the underlying records which excludes existing records, but I doubt this.

It would help if you gave us more details of your form's recordsource query, and included the type of the new field.

One thing I am certain of is that the issue is less likely to be to do with your form as such; the form is just a means to an end, and of much more importance is the underlying query (or table) you have based your form upon. You should be able to run the query directly and see whether or not your old records are visible. If they are not, it would confirm my feeling that you have nulls in the added field for all your old records, and this in turn is preventing a relationship from returning matching records.

Welcome to Bytes!

-Stewart
May 20 '10 #2
Greazy
3
Thanks for the prompt reply Stewart. Let me see if I can clarify.

1. yes, I did add a new field in the Table view.
2. I can still view all of my data in this Table view as well.
3. I went back to my 30 older records and put in values for the ~null~ ones.
4. I didn't do anything crazy with this: just a simple new (date) field added to a table, which the form is directly associated to. It is not being pulled from a second table or any such business. Format: Short Date. Control Source: field is linked to my new table column (and works fine w/ new items).
5. No filters are being used (to my knowledge)
6. What is the "forms recordsource query" ?

hmm...further thoughts?

Greazy
May 20 '10 #3
Stewart Ross
2,545 Expert Mod 2GB
Hi Greazy. Your form should, ideally, be based on a query rather than directly on the table. The query then acts as the form's record source. The advantage is that you can sort the records in whatever order is appropriate, whereas when you base a form on the table you see the records ordered by whatever is the primary key field - often not the order you would want to present your records to users.

If your form is not being filtered and you simply added a date field there is no logical reason at all that you cannot see all records. Please ensure that you have no filters active - you will see any active filter in the form's Filter property in design view. You can also see the Recordsource property, which specifies the table or query on which the form is based. I'd check that property as well, just to make sure it matches what you expect it to match.

Other than what I have suggested I can see no reason for the form not to show all records.

A final thought: please make sure your form's properties are set to Allow Edits. There are three properties - Allow Additions, Allow Edits, and Allow Deletions which alter form behaviour. If the form is set to Allow Additions - Yes and Allow Edits - No you will not see existing records - you will be able to enter and review new records only.

-Stewart
May 20 '10 #4
Greazy
3
Hmm...I'm not sure what went wrong. I found that the properties were set to ALLOW ADDITIONS but for whatever reason it still won't show. I went and created a new Form from scratch and that works fine. I even added another field and that took as well. Strange...

Thanks for your feedback! Starting with a MS template I suspect was to blame here.

have a good weekend,

Greazy
May 21 '10 #5

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

Similar topics

3
by: john | last post by:
I'm trying to refer to a form's field in a query like this strSQL = "SELECT Transactie.* INTO CatTemp" strSQL = strSQL & " FROM Transactie" strSQL = strSQL & " WHERE Transactie.Categorie1=!! ;"...
1
FSUKXAZ
by: FSUKXAZ | last post by:
I'm trying to change Identity on field w/Data using SQL Manager and cannot. The table is called Members and the field is called MemberID. It is already the Primary key, Not Null, and Unique...
22
by: Zytan | last post by:
I have public methods in a form. The main form calls them, to update that form's display. This form is like a real-time view of data that is changing. But, the form may not exist (it is...
2
by: tahseenm | last post by:
I would like to know the easy way to make my date field to pop up calendar to select my dates in a form date field. Thanks and let me know soon.
3
by: Steed | last post by:
Evening all, I'm very new to VBA and am struggling badly with this one. I'll explain what I need to do as the title is a little unclear! I'm making an insurance calculator for classic cars, and...
9
by: Annalyzer | last post by:
This should be an easy one, but I can't figure it out. frmProvider (data source: tblProvider) displays information about child care providers. Since tblProvider is fairly large, I am using a...
1
by: popoypopoy | last post by:
How to create an email attachment for the user's biodata from the form file field using Persist.MailSender ?
17
by: lee weaver | last post by:
I have a form to edit employee data that is a copy of the add employee form ( Which works great) with a list box at the top to select the employee to edit that is susposed to navigate to the correct...
4
by: BobS | last post by:
This seems very simple but I can't find how to do it. I wrote a form that is in data entry mode when the data is entered. The primary key field should always be a length of 5, how do I check the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
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.