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

Loading sub forms on tab control main form

I have run into a situation in my Access 2010 database that I don't understand. I have a form with many other forms on a Tab Control. The original issue was that the subtotals on a continuous form stopped loading. I have reworked the form and now have the subtotals loading on Form_Current using a DOA.Recordset. So, now the form looks beautiful but the data has become read-only.

Background: This database is an Access front end linked to Oracle and Access back end tables. The Access tables are newer tables that we have not yet switched to Oracle.
The form I am working on has 6 tabs on the tab control.
The first tab has 2 forms residing on it. Both of these forms get their data exclusively from Oracle tables. The first form is the continuous form that I referred to above. It is loading the details from a query and the headers and footers (totals) from the DAO.Recordset. The text box on this form is loading as read only. The second form is a single form that has both check boxes and text boxes. The check boxes on this form work but the text boxes are read only. The properties on both forms are set to Enabled=Yes, Locked=No. When I open the form separate from the tab control I am able to update all fields.
The second tab has 1 form and indicators (rich text boxes that load red, yellow, green based on the status of cost, schedule, scope, and funding). The indicators load through functions and the form gets its data exclusively from Oracle. I am getting the same results with the check boxes, and the combo boxes updating but the text boxes being read-only. The properties are set to Enabled=Yes, Locked=No. When I open the form separate from the tab control I am able to update all fields.
The third tab as 1 form that gets its data exclusively from Oracle. This form is all check boxes and combo boxes and it is update-able.
The fourth tab has 1 form that is pulling data from an Access table. The data is maintained elsewhere and is information only on this form. This is read only by design and is loading fine.
The fifth tab has 2 forms that are pulling data from an Access table. These forms are also read only by design and loading as expected.
The sixth tab has 1 form that is pulling 1 field from Oracle and the rest of the fields from Access. This form has text boxes and a few commands. This form loads correctly and the data in both the Oracle and Access fields can be updated.

If the user goes into the sixth tab and then back to the first or second tab the text fields that were read-only are now update-able. I moved the sixth tab to be first and this holds true. The user does not need to make any changes on the sixth tab; just going into it resolves the read-only issue. The problem with moving the sixth tab is the users need to update the sixth tab much less often than the first tab and it is not logical to go into the sixth tab first.

As I was typing this all up to get your input on what is happening and why, I came to the hypothesis that it has something to do with the mixture of the Access and Oracle tables as the data source for the forms. Have you run into this issue? Can you explain what is happening? Is there a better way to solve this?

Thank you for taking the time to read and respond to my issue.
Oct 9 '15 #1
1 1139
zmbd
5,501 Expert Mod 4TB
no clue

my first thought, in the on_load event of the subforms that are giving you issues, insert a me.Refresh at the end of any code you currently have running in this event... it's a guess and may not do anything; however, this shouldn't do any harm either. :)
Dec 5 '15 #2

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

Similar topics

0
by: source | last post by:
I am trying to create a custom setup project. I know this is very silly, but want to know what is the best way so that when I start my setup I should see a splash form and then my main setup form....
4
by: Snuyt | last post by:
Hallo, I have 3 forms : main, form1 and form2 I can open form1 and form2 from main by clicking a button in main. I can open form2 form form1 by clicking a button in form1. I can open form1...
3
by: EnglishMan69 | last post by:
Hello All, I am using VB2005 Beta 2 in VS 2005 and am running into a small problem. I need to be able to add a picture box to the main form from within a thread. The program goes to a web...
1
by: Vladimir Oľura | last post by:
I am building a Pocket PC application in C#. I have 5 forms (1 main and 4 sub forms). The main form must always load first. The sub forms are loaded from the main form. The application is run...
0
by: theBman | last post by:
I have 2 tables. One master, one child using Access 2003 (PC) Have 2 forms. The main form is continuous while the sub is datasheet. I can filter on the main form and the subform filters with...
2
by: SREDWORB | last post by:
Hello, Try to explain this as best as I can. I have a main form with several cmd buttons, (Not interested in subforms for this project) that opens popup forms. Example: Main form frmPerson,...
11
by: OldBirdman | last post by:
I have a form with several bound textboxes. These are routinely updated by User. The table in RecordSource for this form currently has 8 fields not shown on this form, but which occasionally need...
1
by: Gordon Padwick | last post by:
I’m still having a problem with using a combo box in a main form to select records to be displayed in a subform. I’ve tried code suggested in several sources, but it doesn’t work. In “Filter records...
1
by: Shahich | last post by:
Dear Sir, One toggle link (child form) automatically attached with main form through form wizard. I wanna link more 10 forms with main form as child forms. How can I do this. Please guide. Thanx &...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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,...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.