473,666 Members | 2,324 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

New rows in Subform

OK.. Here's my situation. I have a subform on a parent form. When
the parent form is loaded, the subreport queries data from a table in
the DB. The parent form has a couple of text boxes for data entry. A
command button on the parent form inserts that data from the text boxes

into the database... The subreport is then supposed to requery and show

the previous information as well as the just inserted information.
I have read a lot of posts and have found that SubReport.Reque ry
only show changes to data. It does not show any new rows. No one seems
to have the answer in showing the new rows.
Someone in the world should have figured out a way to deal with
this. I can't be the only one that has this problem...
Please help!!!
Thanks in advance.

Nov 13 '05 #1
3 1619
Steven wrote:
OK.. Here's my situation. I have a subform on a parent form. When
the parent form is loaded, the subreport queries data from a table in
the DB. The parent form has a couple of text boxes for data entry. A
command button on the parent form inserts that data from the text boxes

into the database... The subreport is then supposed to requery and show

the previous information as well as the just inserted information.
I have read a lot of posts and have found that SubReport.Reque ry
only show changes to data. It does not show any new rows. No one seems
to have the answer in showing the new rows.
Someone in the world should have figured out a way to deal with
this. I can't be the only one that has this problem...
Please help!!!
Thanks in advance.

If I need to requery a subform, the syntax would be
Forms!MainFormN ame!SubFormName .Form.Requery
Nov 13 '05 #2
Tried this and it only shows changes to rows that are already there. It
does not show any new rows.

Nov 13 '05 #3
Steven wrote:
Tried this and it only shows changes to rows that are already there. It
does not show any new rows.

That's odd. Requery will execute the SQL string contained in the
Recordsource. The only thing I can think of is that you have a filter
that the new records don't match. You might want to do something like
Forms!MainForm! SubFormm.Form.F ilter = ""
Forms!MainForm! SubFormm.Form.F ilterOn = False
Forms!MainForm! SubFormm.Form.R equery
Hmmm...
First do a
Msg Forms!MainForm! SubFormm.Form.F ilter
to see what the current filter is. You may need to set the filter to
the link fields only.

That's the only thing I can think of that would not show all the records
associated with the main record.

Nov 13 '05 #4

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

Similar topics

3
4072
by: Greg Neef | last post by:
I need to develop a Tab Form where selecting a particular key from an unbound combo listbox will resulting in the display one or many records from several tables, where each tab has the matching rows for the selected key. There does not appear to be a similar example in the Northwind database. The objective is to show related records from several tables which have a common partial key. It seems that I cannot use a single query as the...
4
2273
by: Laura | last post by:
Here's the situation: I'm trying to use an update query to copy data from one row to another. Here is the situation: I have 5 companies that are linked to each other. I need to show all 5 companies on a form. 3 of the companies have common employees. I have a table that looks like this:
0
1202
by: Bobby | last post by:
Hello, I've a table 'A' with a reference to another table 'B'. I've created a form with A's fields, and a subform that displays B's fields, with a link between them in the subform properties (Master: Bref, Child: ID). This allows the user of the form to see and edit the fields in B, but if I want to add a new row, I get the 'You can't assign a value to this object' message (due to the link).
1
1642
by: fecket | last post by:
I have a subform which is a continous form and displays the content of a table, with a subjext number, then a line of text, then a score. I have used an option group to update the score as 0,2,4,6,8,10 When entering the data it is a bit difficult to keep track of where you are, as you are transferring data from hard copy. Is there a way to allocate a background colour to individual rows of the subform to give an overall colour for each...
0
1239
by: Krij | last post by:
Hi! I have a problem with the following code (behind a button on frmOrders): (structure: frmOrders->frmOrderdetails (form with subform)) strPutBack = "INSERT INTO tblAmountItems(ItemID,Amount,MyDate,Returned) " _ & "SELECT ItemID,Amount,MyDate,Returned " _
1
2154
by: sherbert1967 | last post by:
How do I determine (from main form) what rows have been selected within a (datasheet style) subform. As I need to transfer these rows to another table. Can this be achieved via code? Please assist!!!
1
11428
by: pdesh3 | last post by:
I have created a form where one text box and two command buttons named Search and Clear are present. Under all these fields I am also including a subform which displays all the values stored in Patient table. When I enter any word in the name text box and click enter then the values in sub form only display the details of the patient whose first name or last name matches with the given name. When button Clear is hit ( in future I am planning...
4
9265
by: ramaswamynanda | last post by:
Hello All, This is my first question in this forum. I have a superform/subform design. When a value changes in the superform, a function is called which which calculate some values, and change it in every row in the subform. I am not able to figure out how to reach every row in the subform. What i need is i = subform.rowcount for count = 0 to i subform.field.value = calc_value next any help will be appreciated
5
9672
Breezwell
by: Breezwell | last post by:
I have done some searching on this one and I have yet to find any information that sheds light on what I am trying to do. At lease from what I can understand. Basically, I have a main form which has a single subform. The subform presents a datasheet view of a a query. The query results present information in such a manner that a single column, call it GroupCode, can have numerous duplicate entries. This is actually desired as a normalized...
0
8454
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
8362
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
8785
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...
1
8560
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8644
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...
1
6200
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
5671
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
4200
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2012
muto222
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.