473,698 Members | 2,304 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Subform going completely blank

Hello,

I have a main form with one subform. The main form displays a record from
TableOne (PCID)

This is a corporate software tracking utility that works like this:

Main form...Choose PCID (from TableOne)
Subform..Displa y / Add software (from TableTwo) (linked via PCID)

Relationships:
TableOne(PCID) linked to TableTwo(PCID)
TableThree(Soft wareTitleKey) linked to TableTwo(Softwa reTitleKey)

The Subform displays query data from TableTwo based on the choosen record
(PCID) in the main form.
My problem is, after I add a new PC into TableOne in the main form, the
subform goes completely blank until I manually enter at least one record
into TableTwo by editing TableTwo directly.

Why does my subform go completely blank if there is no linked record yet in
TableTwo? Even my data entry fields and buttons dissapear which doesn't
allow me to enter the first record into TableTwo.

Thanks

Tim
Nov 13 '05 #1
1 6538
The Detail section of the form goes completely blank if both:
a) there are no records, and
b) no new records can be added.

The 2nd condition can be caused by setting the form's AllowAdditions
property to Yes, or if the form's RecordSource is a query where new records
cannot be added.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Tim Graichen" <Tg*******@neo. rr.com> wrote in message
news:7B******** ***********@fe2 .columbus.rr.co m...
Hello,

I have a main form with one subform. The main form displays a record from
TableOne (PCID)

This is a corporate software tracking utility that works like this:

Main form...Choose PCID (from TableOne)
Subform..Displa y / Add software (from TableTwo) (linked via PCID)

Relationships:
TableOne(PCID) linked to TableTwo(PCID)
TableThree(Soft wareTitleKey) linked to TableTwo(Softwa reTitleKey)

The Subform displays query data from TableTwo based on the choosen record
(PCID) in the main form.
My problem is, after I add a new PC into TableOne in the main form, the
subform goes completely blank until I manually enter at least one record
into TableTwo by editing TableTwo directly.

Why does my subform go completely blank if there is no linked record yet
in
TableTwo? Even my data entry fields and buttons dissapear which doesn't
allow me to enter the first record into TableTwo.

Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
7007
by: Joe Scully | last post by:
Hi all, I am having trouble with access adding a blank record to a subform everytime I finish entering data and closing the form. (The form and subform are based on the one table) When entering data into the subform I get the pencil icon to show data addition, but underneath the record I am inputting data the record is blank with a star(*)icon and this is the record(blank)that always gets saved with all the records that actually have...
3
5878
by: Charlene | last post by:
I have an Invoice/Invoice Details form/subform. In the page footer of the Invoice Details subform I have a textbox with the control source set to =Sum(). I then pull this value into the main form with a textbox whose control source is =!. This works fine when there are one or more line items in Invoice Details but on a new invoice before any invoice details are entered, the textbox on the main form shows #Error. I would like it to show...
25
10241
by: Lyn | last post by:
Hi, I am working on a genealogy form. The only table (so far) lists everybody in the family, one record per person. Each record has an autonum ID. The parent form (frmMainForm) displays the data in each record, which includes the ID of the father and the mother (who also have records in the table). One record per form. I have a Tab Control in the form, and in one of the tabs I have a subform (sfmSiblings) in which I wish to list...
1
4073
by: Tim Graichen | last post by:
I have FrmMain that has one subform (SbForm). FrmMain is filled with records from Tbl1. SbForm is filled with records from Tbl2 based on the current selected record in FrmMain from Tbl1. FrmMain properties has AllowAdditions = NO until the 'Edit/Add Rec' button is clicked, setting AllowAdditions=Yes SbForm properties has AllowAdditions = NO until the 'SF Edit/Add Rec' button is clicked, setting AllowAdditions=Yes
5
3485
by: Susan Bricker | last post by:
Hi. I have a Main form with a subform that has a subform. I have an 'Add Event' button on the Main Form that issues the following instruction: DoCmd.GoToRecord , , acNewRec If the record being displayed BEFORE the 'Add Event' button is clicked does not have data to be displayed (no associated linked records) then when the 'new record' is displayed, the innermost subform looks just fine (all the controls are there and they are empty).
2
1912
by: Shannan Casteel via AccessMonster.com | last post by:
I have a simple invoice form with a subform that allows the user to list part numbers along with the quantity. The subform has a calculated field called that should take either the or the and multiply by to get a value. The subform is based on a query that pulls from 2 tables. (tblPartPerClaim & tblParts) I've tried using the IIF function in the field of the query, the field of the subform, and I've also tried leaving the text...
2
3767
by: Mike | last post by:
I have a parent form with two subforms on it. Each subform lists certain records and then totals up one of the fieldsd. The parent form then totals up the two text boxes. The problem is that if there are no records for one of the subform's query, then I get an error (obviously you can't add a value from a text box if it does not exist...): Subform 1: ItemX 10 ItemY 5
9
9692
by: Ecohouse | last post by:
I have a main form with two subforms. The first subform has the child link to the main form identity key. subform1 - Master Field: SK Child Field: TrainingMasterSK The second subform has a master-child link to the first subform. subform2 - Master Field: subTrainingModule.Form!TrainingModuleTopicSK Child Field: TrainingModuleTopicSK
1
2350
by: andrewbda | last post by:
I am having issues with showing a subform. Basically it is an address form, which is linked to a customer number on the main form. If there is an existing address record, the form always shows. However when no matching records are there, the subform does not show. I want it to always show. If I switch to design view, and then back to form view, the blank
0
8674
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8603
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9027
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8861
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7725
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6518
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5860
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3046
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 we have to send another system

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.