473,473 Members | 2,282 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Why did table data suddenly stop displaying in form?

9 New Member
Access 2007: I have a DB where I have customers that have multiple sites (one-to-many relationship), and the sites have multiple systems (another one-to-many). Up until today, the relationships have worked fine and data has appeared as expected on each of the corresponding forms. There is a button on the customers form that opens the site form, and displays the sites that are linked to that customer. There is also a button on the [Sites] form that opens the [Systems] form and displays the systems that are linked to that site. It has all worked fine until now... Suddenly today when I click my button on the sites form to open the Systems form, none of the systems data appears, even though I know it's in the table. I've checked the data in the table and everything seems in order. The linking field (SiteID) is correct for the site and the corresponding systems, but for some reason they do not appear on the Systems FORM. Again, all the data is correct in the tables and even the queries work. Any reason why they wouldn't appear on the form, and when I try to use the "Find" function to search for a record, the Find function doesn't work because it says:
*the fields are "controls;
*the fields have no data; or
*There are no fields to search.

Thanks for any help with my mystery!
Feb 6 '11 #1
21 4683
RuralGuy
375 Recognized Expert Contributor
Try *importing* your FrontEnd into a fresh, new db and see if the problem follows. http://www.btabdevelopment.com/ts/impnew
Feb 6 '11 #2
Jennifer F
9 New Member
I tried importing the old DB into a new one 2 different ways: (1) I tried it by importing the structure AND the data - didn't work; and (2) I tried it by importing the structure only and tried test data. It still is not working. When I get to the Systems form, it is not showing data. I find it really weird that the form accepts the data, but if I refresh the page it disappears and says there are no records. But the Systems form has a subform based on a query that is designed to show all the types of systems that are associated with that site. The query works and the subform shows the correct systems. Still no clue why it won't show up in the main Systems form, and why it worked seamlessly up until recently.
Feb 6 '11 #3
RuralGuy
375 Recognized Expert Contributor
What you describe can also be caused by setting the DataEntry property of the MainForm to TRUE.
Feb 6 '11 #4
Jennifer F
9 New Member
Thanks again for the quick response... I've made sure that the DataEntry property was set to NO for both my original DB main Systems form, and for the new imported DB Systems form. It didn't seem to make a difference. I've even tried building the form again from scratch. Again, the queries and subforms work; but not the main form. For example, even though in my tables I can see that I have roughly 8 systems for one site, and it lists the 8 systems in the subform, the mainform displays 0 records for that site.
Feb 7 '11 #5
RuralGuy
375 Recognized Expert Contributor
How are you trying to display the count of records in the SubForm on the MainForm?
Feb 7 '11 #6
Jennifer F
9 New Member
Here is a picture of how the subform displays the systems. In the Systems Table, the systems are shown accurately, as they do in the subform. The data and records DO exist; however they aren't showing here on my main form. I've quadruple-checked that the form is based on the correct table and I don't recall changing anything before the form stopped showing the data.
Attached Images
File Type: jpg Systems Form005.jpg (47.2 KB, 428 views)
Feb 7 '11 #7
RuralGuy
375 Recognized Expert Contributor
Show a picture of the form is design view so we can tell what are SubForms, please.
Feb 7 '11 #8
Jennifer F
9 New Member
Here is an image of the form in Design view. It is a terrible picture but you can see 2 subforms: the subform on the left lists dates when the inspections are due, and the subform on the right shows all of the systems that are assigned to the site. The list is populating correctly.
Attached Images
File Type: jpg Systems Form Small.JPG (18.9 KB, 376 views)
Feb 7 '11 #9
RuralGuy
375 Recognized Expert Contributor
So in your picture in post #7 there should be data in the SubForm on the left AND the MainForm?
Feb 8 '11 #10
TheSmileyCoder
2,322 Recognized Expert Moderator Top Contributor
I once accidentally changed the "Display When" property of the Detail Area of a form to "Print Only".

The whole detail section simply stopped showing in my form. Like you I checked my Queries, I trieded copying/importing the form, and (of course) none of it helped.

Maybe thats what's gotten you?
Feb 8 '11 #11
Rabbit
12,516 Recognized Expert Moderator MVP
How big is the file? Is it 2 gigs? That's the limit of an Access database.
Feb 8 '11 #12
Jennifer F
9 New Member
RuralGuy --> There is the main [Systems] form, with 2 subforms on it. The left subform is based on a table called Cycles and is linked to the Systems table by [SystemID]. For each system there can be multiple cycles (dates). The subform on the right is based on a query that shows a list of the systems (system name only) that are assigned to the site. You can see from the first picture that the query and that subform are still working. The left subform [Cycles] seems to be in the same boat as the main form [Systems]. It is not displaying the data either, which makes sense to me, since the cycle/date data is tied into the data on the main form.

TheSmileyOne --> Unfortunately, no... I checked the Visible property and it's set to ALWAYS.

Rabbit --> The DB is 5,024 KB so I'm safe for now.

Thanks everyone for your input. All ideas are welcome as this problem is really stumping me.
Feb 8 '11 #13
RuralGuy
375 Recognized Expert Contributor
I'm out of guesses unless you can post your db so we can play with it. Remove any sensitive data of course.
Feb 8 '11 #14
Jennifer F
9 New Member
I'm posting the database that I imported into the new DB, so it only has test data in it. All the structure and the behavior is the same. Thank you!
Attached Files
File Type: zip Service1.zip (540.3 KB, 104 views)
Feb 8 '11 #15
RuralGuy
375 Recognized Expert Contributor
Put a TextBox on the MainForm bound to the SystemID field of the RecordSource and you will see what is happening.
Feb 8 '11 #16
Jennifer F
9 New Member
I added the text box. I guess I'm not recognizing what I need to see. Can you explain what's happening with that text box that could be causing the data not to show? When I tested the data again, it looks like when I open the [Systems] page, the SystemID textbox says (New) as if I'm going to add a new record, even when there are already 3 systems assigned to the site. When I try to use the [Jump to System] combo box to go to one of the existing systems, it tells me that I can't use the find/replace function. If I start to add a new system, then the system ID shows up, which is what I'd expect. What am I missing?
Feb 8 '11 #17
RuralGuy
375 Recognized Expert Contributor
Maybe I just don't know how to use your forms yet. The left hand SubForm will have no records until there is a valid SystemID in the new textbox on the MainForm. I expected there to be records in that SubForm when we got there.
Feb 8 '11 #18
Jennifer F
9 New Member
You start off on the Customers form. Click the "View Customer Sites" button to get to the first Site form. Then click the "View/Add Systems Details for this site" button on that form. When you're at the Systems form, choose a system from the [System] combo box, choose a [Frequency] and maybe put some test data in another field or two. Then tab or click down in the left-hand subform and choose a [Cycle Type] and put any date in the inspection date field. You can put another line of cycle type and inspection date in, just to get a couple of [Cycle] records in there. If you then press the "refresh" button that I've added to the page, the system that you just entered will show up on the right-hand subform, since you've not assigned that system to the site. It still looks like everything is OK. Now close the form, which will take you back to the [Site] form. Now click on the "View/Add Systems Details for this Site" button again. You're back at the Systems form, and all the systems that you added are listed on the right-hand subform, but none of the data appears on the main form. In addition, the "count" that I have listed above the navigation buttons will say "System 1 of 0 for this site" when I know there is at least one in existence because we just added it, and we can see it in the right-hand subform.
Feb 8 '11 #19
RuralGuy
375 Recognized Expert Contributor
I have to go to several meeting now but I'll check in later. I really cannot follow the logic of your forms yet, sorry.
Feb 8 '11 #20
RuralGuy
375 Recognized Expert Contributor
In the WhereCondition argument of the Sites Form
"View/Add Systems Details for this Site" button,
change: [Forms]![Sites].[SiteID]=[Forms]![Systems].[SiteID]
to: [SiteID]=[SiteID]
...and see if that now works as you want.
Feb 9 '11 #21
RuralGuy
375 Recognized Expert Contributor
Did that make any sense?
Feb 10 '11 #22

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

Similar topics

9
by: cooldv | last post by:
i know how to replace the sign " when SUBMITTING a form in asp by this code: message = Replace(usermessage, "'", "''"). My problem is DISPLAYING data in an asp FORM, from an an access database,...
3
by: John Baker | last post by:
Hi: At the outset let me admit that I screwed up! I have built a rather elaborate set of forms and sub forms starting with a client table, and going down to PO and Line item. This works very...
8
by: Smartin | last post by:
I have a form in Access97 which facilitates a query against a production Access database. Users will enter some search terms and see a datasheet view of the results in a subform. The prod table is...
2
by: MLH | last post by:
A97 Am having difficulty displaying graph in Form View that I see fine in graph control on form opened in design view. I know I'm doing something wrong. If I open the form in design view - I...
0
by: pd123 | last post by:
I'm new to C# and .net and I'm trying to create a form that will register users in a sql server database. I have the following code but when I run the code I get an error " The name 'Peter' is...
11
by: kabradley | last post by:
Hello Everyone, So, thanks to nico's help I was finally able to 'finish' our companies access database. For the past week or so though,I have been designing forms that contain a subform and an...
6
by: punitshrivastava | last post by:
Hi all, I am Punit I am working in php .i want to delete records from database from php form . For this i code the code is: <?php $name = $_POST; $host="localhost"; // Host name ...
2
by: sateeshchandrasanga | last post by:
Hi All, My HTML code is working fine in Firefox.But its not displaying any thing in IE.Can you help me in this problem.And in Google crown its displaying but not properly. ...
3
by: nedved | last post by:
hi i have a little problem with a new database i am building i have made a new form with different fields it combine : 6 list box , 1 combobox and 2 text field with control source ...
0
by: nilanjangm | last post by:
I am using MS Access 2007. I have one of my tables where I store files as "Attachment" datatype against each employee record. Till this point everything is okay. Now, what I want is to display...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...
1
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.