MS Access

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Remember me

Go Back   Tutorialized ForumsDatabasesMS Access

Add This Thread To:   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
Unread Tutorialized Forums Sponsor:
Old July 7th, 2017, 05:19 AM
MarcusM MarcusM is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
Join Date: Jul 2017
Posts: 0 MarcusM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 25 m 29 sec
Reputation Power: 0
MS Access subform not displaying records and not navigating

I posted the following about 2 months ago:

One-to-one relationship. One table is the main form, the other the subform. The main form's table has more records than the subform table. Master and child links are set. I have decompiled and have done compact and repair. I suspect my application is malfunctioning. In that case it is not the first time (I fixed it). Nothing seems to be working this time. I have also imported into a new database.

On form-load both forms and fields are well. I continue to the next records using a ['NEXT'] button and reach the end of the sub-forms records therefore having blanks fields. I try to navigate to the previous records (also using a button) but the subform does not move/navigate. Nothing happens to the subform.

It seems like it has gotten worse because first it was navigating but was not obeying code saying when text box is filled disable checkbox and vise versa.

This is today's post:

I am not able to share a screenshot if it is required. I have done compact and repair and decompile.

Here is the Current event code:

Private Sub Form_Current()

btnPreviousRecord.Enabled = Not (CurrentRecord = 1 Or NewRecord)
btnNextRecord.Enabled = Not (CurrentRecord = DCount("*", RecordSource) Or NewRecord)

'For a new Order table record
If (IsNull(Forms!Order!OrderSubform.Form!txtDate_Of_O rder_Cancel.Value) Or _
Forms!Order!OrderSubform.Form!txtDate_Of_Order_Can cel.Value = "") Then
Forms!Order!OrderSubform.Form!chckbxOrder_Cancelle d.Value = False
Forms!Order!OrderSubform.Form!chckbxOrder_Cancelle d.Value = True
'' ElseIf (IsNull(Forms!Order!OrderSubform.Form!txtDate_Of_O rder_Cancel.Value) Or _
'' Forms!Order!OrderSubform.Form!txtDate_Of_Order_Can cel.Value = "") Then
' 'Forms!Order!OrderSubform.Form!txtDate_Of_Order_Ca ncel.Enabled = False
' 'Forms!Order!OrderSubform.Form!chckbxOrder_Cancell ed.Enabled = True
' Forms!Order!OrderSubform.Form!chckbxOrder_Cancelle d.Value = False
' ElseIf (Forms!Order!OrderSubform.Form!chckbxOrder_Cancell ed.Value = False) Then
' Forms!Order!OrderSubform.Form!txtDate_Of_Order_Can cel.Enabled = True
' ElseIf (Forms!Order!OrderSubform.Form!chckbxOrder_Cancell ed.Value = True) Then
' Forms!Order!OrderSubform.Form!txtDate_Of_Order_Can cel.Enabled = False
'' Else
'' Forms!Order!OrderSubform.Form!txtDate_Of_Order_Can cel.Enabled = True
'' Forms!Order!OrderSubform.Form!chckbxOrder_Cancelle d.Enabled = False
'' Forms!Order!OrderSubform.Form!chckbxOrder_Cancelle d.Value = False
End If

End Sub


This issue disappeared before and now it is back on the same form/subform. It has not occurred with any other. What I did now was import that form/subform with its tables and relationships into a new Access file with the code, ran it and the problem persists.

I repaired Office 2007 and reinstalled it.

Reply With Quote

Viewing: Tutorialized ForumsDatabasesMS Access > MS Access subform not displaying records and not navigating

Developer Shed Advertisers and Affiliates

Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 

Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.

© 2003-2019 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap